FMX.ActnList.TActionLink.IsOnExecuteLinked
Delphi
function IsOnExecuteLinked: Boolean; override;
C++
virtual bool __fastcall IsOnExecuteLinked(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.ActnList.pas FMX.ActnList.hpp |
FMX.ActnList | TActionLink |
Description
Introduces an interface for checking whether the OnExecute event handler of the action is linked to the execution event handler of the client.
FMX.ActnList.TActionLink.IsOnExecuteLinked inherits from System.Classes.TBasicActionLink.IsOnExecuteLinked. All content below this line refers to System.Classes.TBasicActionLink.IsOnExecuteLinked.
Introduces an interface for checking whether the OnExecute event handler of the action is linked to the execution event handler of the client.
In the TBasicActionLink class, IsOnExecuteLinked simply returns True and does not check anything.
Descendant classes can override IsOnExecuteLinked to determine whether changing of the OnExecute event handler of the action should be propagated to the event handler of the appropriate execution event of the client. Usually, an execution event of a client is the OnClick event and namely the OnClick event handler should be changed.
If a client (like FMX.Forms.TForm) linked by a descendant class object does not support an appropriate execution event, then IsOnExecuteLinked always returns False.
As implemented in TActionLink:
- IsOnExecuteLinked returns
False
if the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link.
- Also IsOnExecuteLinked returns
False
if the client does not support an appropriate execution event.
- Otherwise, IsOnExecuteLinked returns
True
.