[Gambas-user] Problem: how to get toolbutton events from dynamic toolbuttons
Stefano Palmeri
rospolosco at ...152...
Tue Oct 17 17:28:11 CEST 2006
Alle 17:13, martedì 17 ottobre 2006, Christopher Brian Jack ha scritto:
> Actually right now my form is actually using an HBox container. And the
> buttons are created with the HBox as the parent (to get get Horizontal
> alignment) at runtime in my Form_Open code using NEW.
>
> How do I handle events from such ToolButtons being created at runtime from
> the Form code?
Probably you did:
MyButton1 = NEW Button AS "mybuttons"
MyButton2 = NEW Button AS "mybuttons"
then to get their events just
PUBLIC SUB mybuttons_click()
Bye,
Stefano
More information about the User
mailing list