FMX.ActnList.TCustomAction.Execute
Delphi
function Execute: Boolean; override;
C++
DYNAMIC bool __fastcall Execute();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.ActnList.pas FMX.ActnList.hpp |
FMX.ActnList | TCustomAction |
Description
Responds when a client control "fires".
Execute is called automatically when a client control "fires" (for example, when the user clicks a button or selects a menu item).
Execute first ensures that the action is updated. Then Execute calls the inherited System.Classes.TBasicAction.Execute method. System.Classes.TBasicAction.Execute calls the OnExecute event handler, if one is assigned. Execute returns True if an event handler is called and the action is Enabled. Otherwise, Execute returns False.