[Gambas-user] Problem: how to get toolbutton events from dynamic toolbuttons
Christopher Brian Jack
brian at ...1334...
Tue Oct 17 19:46:00 CEST 2006
On Tue, 17 Oct 2006, Stefano Palmeri wrote:
Thanks. For showing me what I was missing, AND how to use what the
Form designer implements as groups (which is by making hte control names
in the AS part the same).
> 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
.=================================================.
| Christopher BRIAN Jack aka "Gau of the Veldt" |
+================================================='
| oevna at ...1544...
`=================================================-
Hi Spambots, my email address is sputnik at ...1334...
Hi Humans, my email address uses rot13 cipher
More information about the User
mailing list