[Gambas-user] TableView Problem
nando
nando_f at ...951...
Thu Nov 3 20:13:04 CET 2005
To count the _DATA events, do (similar to) the following.
Create a label called Label_Count
with TEXT as 0 (zero)
The first code line inside the _Data event for the TableView..
Label_Count.Text = Label_Count.Text + 1
... now scroll and/or click on your TableView.
Watch the count
Also, notice how the Label is a static control.
It's implementation is opposite to your comment.
-Fernando
---------- Original Message -----------
From: Eilert <eilert-sprachen at ...221...>
To: gambas-user at lists.sourceforge.net
Sent: Thu, 03 Nov 2005 12:24:40 +0100
Subject: Re: [Gambas-user] TableView Problem
> Hi Fernando,
>
> nando schrieb:
> > Why does the data disappear when scrolled ?
>
> Does it? Not with my TableView :-) At least, I've never seen that.
>
> > If one is to have a TableView with data from many tables in MySQL,
> > this means that all scrolling and clicking REQUIRES the MySQL
> > queries be performed repeatedly because the cells are 'erased' every
>
> Anyway, a long time ago some professional programmers taught me to
> take care of having 3 layers of program code in my projects:
> saving/storing, process/warehouse, display.
>
> In this case it would mean you just have to follow consequently this
> rule for the TableView. "Never let a graphical control
> store/handle/process your data", so was their advice. Following it,
> saved me a lot of hassle through the years.
>
> Now I will look if the TableView really fires events all the time...
> :-)
>
> Rolf
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------
More information about the User
mailing list