[Gambas-user] Trapping events from dynamically created controls....

Benoit Minisini gambas at ...1...
Wed Feb 21 13:19:50 CET 2007


On mardi 20 février 2007, Benoit Minisini wrote:
> On mardi 20 février 2007, sbungay wrote:
> >    Thank you Timothy!
> >
> >    I was appending an index number to the end of the button name like so
> >
> > bh = NEW Button(LAST) AS "SkillButton" & CSTR(IndexID)
> >
> >    My thinking was that the button names all had to be unique. Wrong
> > wrong.
> >
> >    Benoit, how can Gambas allow us to create controls on the fly that
> > all have the same name when the IDE does not?
>
> The IDE does. It just names that "control group".
>
> > It gives me the results I
> > want and that's great, now I'm just wondering how this works internally.
>
> Every gambas object has an "event name" that is just used at object
> creation, and that is forgotten after.
>
> Moreover, every gambas name... 

Sorry, read "every gambas control" instead!

-- 
Benoit Minisini




More information about the User mailing list