Another menu question

Looking into the examples i did manage to create my dynamically menu.
It works fine.

Question : the action event handler for the menu is only called when you select a item in the menu.
Is there a way to handle the menu click himself ?

Thanks
Etienne

create a global method
have the action of the menu call that method
you can then “simulate the menu” by just calling the method directly and not worry about the physical menu item at all