FMX.ActnList.TAction.OnExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnExecute;

C++

__property OnExecute;

Properties

Type Visibility Source Unit Parent
event published
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TAction

Description

Occurs when the execute event, of a client linked to the action, fires.

FMX.ActnList.TAction.OnExecute inherits from System.Classes.TBasicAction.OnExecute. All content below this line refers to System.Classes.TBasicAction.OnExecute.

Occurs when the execute event, of a client linked to the action, fires.

Write an OnExecute event handler when you want to respond when the user triggers the client object's default event (typically an OnClick event).

For most target clients, OnExecute is associated with the OnClick event. The Click method triggers the associated Action if EnableExecuteAction is True and the OnClick event handler is not assigned (or is equal to Action.OnExecute).

OnExecute is called in the Execute method.

OnExecute also occurs when the user types the shortcut (or one of the secondary shortcuts) associated with the action or its client.

Warning: If you assign an OnExecute event handler to a predefined action, the default behavior of that action will not occur.

See Also

Code Examples