Difference between revisions of "MenuItem.Action"

From Xojo Documentation

 
Line 1: Line 1:
{{Deprecated|version=2019r2|replacement=[[MenuItem.MenuItemSelected]]}}
 
 
{{EventBox
 
{{EventBox
 
| name=Action
 
| name=Action
Line 8: Line 7:
 
}}
 
}}
 
{{Description
 
{{Description
|text = Fires when a '''MenuItem''' is selected. Return [[True]] to prevent the menu event from proceeding any further in the chain of menu handlers. }}
+
|text = Called when a '''MenuItem''' is selected. Return [[True]] to prevent the menu event from proceeding any further in the chain of menu handlers. }}
  
 
== Notes ==
 
== Notes ==
 
Refer to the [[MenuItem]] page for an example of how a menu that is created dynamically can use the Action event.
 
Refer to the [[MenuItem]] page for an example of how a menu that is created dynamically can use the Action event.

Latest revision as of 21:45, 11 November 2019

Event


MenuItem.Action() As Boolean

Supported for all project types and targets.

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

Notes

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