[Gambas-user] need a hand

ron ronstk at ...239...
Wed Apr 28 19:34:24 CEST 2004


On Wednesday 28 April 2004 16:19, na2492 at ...9... wrote:
> ------ snip --
>
> >The *Other1* is in single step not made
> >You mean with 'FOther1' actual 'ME' and I change it to ME
> >Did resolve the problem here.
> >But I don't understand what the whole program should do.
> >Therefore I'm not able to tell the result is what you want.
> >
> >Ron
>
> Salut Ron,
>
> the xTableView Class provieds you to use TableView without a Database
> It handles the arrays for you (do you remember you mail ? )
>
> Amicalement
> Charlie
> * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de *
>

Hi Charlie,

Well it was not the problem I had to use a array to keep the data for the
tableview. Just the opposite. I need the array but want to use the tableview 
to show the content of it.
The problem was to keep them in sync because the TBV lost the visible cell 
content after unhide the visible part and there is no event that tells me 
this happens and a simple refresh restores the visible part from internal 
already available data. It should keep that for the cells in the viewport.

I know the .Data does this partial but is more for a dynamic content.
There should be a property as .Dynamic=boolean and when false this
requests should not be done and the TBV works like the ListView and other
widgets that keep there content after unhide, resize and whatever.

The tableview raise a event when a area of it is exposed to the world to get 
the datacell content and I had the need to see direct changes in the array.
That was done by writing the same to he array and tableview in a sub.
Because of the changes for the .Data property the only way was to use
a .refresh on it. This is what me disturbed. The TBV flicker if done for the 
whole TBV instead the accessed cell only. 
This was in the old (gb v0.8 below) but seam now be better.

The way it is done in the database manager by using a formula to get
it from the database works good. My problem with that way is only to have
the database connected and open the whole time the TBV is in use.
I.e. a tableview to show only a list of all the countries and there prefix of 
callsigns for hamradio amateurs, landcode etc.
For cases like this a array between the DB and the TBV is a good solution.

It is that you can not store direct in the tableview and use it as the
storage place it self. The Columnview is for this a better way but has no 
rowheader fixed when horizontal scroll is done.

The tableview widget is a nice one, not known to VB, but could use a property 
to let it work in a dynamic or static view and hold the data as other widgets 
do. It's strong pro is the fixed rowheader. The bad thing is to expect the VB 
behaviors. It is for sure not the way this widget/control works!





More information about the User mailing list