TCustomAction.Execute function
Executes the action using an available OnExecute event handler.
Declaration
function Execute: Boolean; overrideFunction result
True if action is to be performed.Description
Execute is an overridden method in TCustomAction. It checks the
State for the ActionList to ensure that it is not suspended. No actions are
performed in the method when ActionList.State contains a value other than
asNormal.
Execute calls Update to signal an available OnUpdate event handler in the ActionList, the Application singleton, or the class instance. It toggles the value in the Checked property when AutoCheck is enabled. The inherited Execute method is called when the class instance is Enabled.
The return value is True if the action was executed in the method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
