[Gambas-user] Question re control groups

Benoit Minisini gambas at ...1...
Thu Mar 24 11:33:55 CET 2005


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

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list