[Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays")
Bill Richman
bill at ...2351...
Fri Jan 1 00:15:03 CET 2010
Well, the "list view" suggestion worked wonderfully! Thank you! I had
wondered how a "list view" differed from a "list box". Now I know...
X-) I had been using an SQL request to populate a list box; I just
didn't realize that there was a control available that allowed you to
keep track of another value in a way not visible to the user. I'm
trying to implement an array of the button objects, but I'm a little
confused. I need the array to be available to all of the SUBS in the
class where they were created (I hope I'm using the right terminology -
I need them to be visible to all of the subroutines associated with the
form they were created on). If I try "PUBLIC aButtons[150] AS Object"
at the top of the code, like I do for all my other variables shared
within the class, I'm told "Arrays are forbidden here!". Is there
something else I should be doing? Since the form controls are what are
calling the subs, it seems like I can't pass the whole aButtons array to
the sub triggered by the event (a button click) since the form won't
know about it if it's declared only inside the sub where the buttons
were first created, right?
Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350... web: www.geektrap.com
Fabien Bodard wrote:
> 2009/12/31 Bill Richman <bill at ...2350...>:
>
> use an object array and store all the object in it.
>
>
> For i = 0 to 144
> hButton = New Button(me) as "button"
> hButton.Tag = i
> aButtons.Add(hButton)
>
> Next
>
>
> aButtons[40].Text
>
> #3) My ListBoxes roll smoothly up and down from one list item to
> another, like movie credits rolling by, and it's really slow. If I were
> the user, this would make me crazy. Is there a way to get them to "jump
> scroll" instead of "smooth scroll"? :-$
>
>
> ?????
> i think this not depend on Gambas but on qt or gtk
>
>
How do I determine this?
More information about the User
mailing list