Re: [Gambas-user] Dynamic menu click event

2008-11-16 Thread Doriano Blengino
Toni ha scritto: > Hi Doriano, thanks for your answer! > I have a related doubt... > If I instantiate some Menu objects from code and I assign them all to > the same "handling function", is there a way, inside this function, to > know which Menu object was the one that fired the event? > The L

Re: [Gambas-user] Dynamic menu click event

2008-11-15 Thread Toni
Hi Doriano, thanks for your answer! I have a related doubt... If I instantiate some Menu objects from code and I assign them all to the same "handling function", is there a way, inside this function, to know which Menu object was the one that fired the event? Regards, Toni Rosa En/na Doriano B

Re: [Gambas-user] Dynamic menu click event

2008-11-15 Thread Doriano Blengino
Toni ha scritto: > Hi, > > I am new to Gambas and I don't know how to solve a problem regarding > setting events for new objects. > I am creating a dynamic menu, but I don't know how to assign an event > handler to it. > Here 2 examples of what I've tried without succes: > > Not working 1: > [...

[Gambas-user] Dynamic menu click event

2008-11-15 Thread Toni
Hi, I am new to Gambas and I don't know how to solve a problem regarding setting events for new objects. I am creating a dynamic menu, but I don't know how to assign an event handler to it. Here 2 examples of what I've tried without succes: Not working 1: [...] DIM mnu AS Menu mnu = NEW Menu(Po