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: b...@geektrap.com  web: www.geektrap.com




Fabien Bodard wrote:
> 2009/12/31 Bill Richman <b...@geektrap.com>:
>   
> 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?  

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to