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 LAST variable is a reference to the current object (inside a event 
handler). For example:

  public sub buttons_click()
    print LAST.text
  end

will print the caption of the button which raised "click".

Salutations,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to