From Xojo Documentation

Revision as of 14:28, 24 July 2017 by PLefebvre (talk | contribs) (Replaced content with "{{EventBox | name=Action | owner=MenuItem | ownertype=class | returntype=Boolean | platform=all }} {{Description |text = Fires when a '''MenuItem''' is selected. R...")

MenuItem.Action() As Boolean

Supported for all project types and targets.

Fires when a MenuItem is selected. Return True to prevent the menu event from proceeding any further in the chain of menu handlers.


Refer to the MenuItem page for an example of how a menu that is created dynamically can use the Action event.