[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'ActnList' (#lcl)

TCustomAction.Execute

Executes the action using an available OnExecute event handler.

Declaration

Source position: actnlist.pas line 198

public function TCustomAction.Execute: Boolean; override;

Function 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

TContainedAction.Execute

  

Executes the action using a available OnExecute event handler.

TBasicAction.Execute


Version 4.0 Generated 2025-05-03 Home