[Gambas-user] Question re control groups

Eldon Eller eeller at ...826...
Thu Mar 24 17:48:57 CET 2005


Tnx Benoit. That is just what I wanted. I am forever in your 
debt--forever. I don't intend to pay off my debt. :-)  EEE

Benoit Minisini wrote:

>On Wednesday 23 March 2005 19:45, Eldon Eller wrote:
>  
>
>>I am writing a little mickey-mouse application with a bunch of buttons
>>collected in a control group. I have no problem writing a handler for
>>buttons in the group (using LAST), but I want to do something else. How
>>do I write a sub to change the text (or other property) of each button
>>in the group? It probably is documented somewhere, but I cannot find it.
>>If someone could point me in the right direction, or tell me how to do
>>it, I would be forever in your debt.  Tnx, EEE
>>
>>    
>>
>
>Debt ? Money ? :-)
>
>You can put all your buttons in a container, and iterate this container to get 
>all its children:
>
>DIM hButton AS Button
>
>FOR EACH hButton IN MyContainer.Children
>  hButton.Text = "Hello"
>NEXT
>
>  
>




More information about the User mailing list