Vcl.CategoryButtons.TButtonItemActionLink.IsOnExecuteLinked

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsOnExecuteLinked: Boolean; override;

C++

virtual bool __fastcall IsOnExecuteLinked(void);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.CategoryButtons.pas
Vcl.CategoryButtons.hpp
Vcl.CategoryButtons TButtonItemActionLink

Description

Introduces an interface for checking whether the OnExecute event handler of the action is linked to the execution event handler of the client.

Vcl.CategoryButtons.TButtonItemActionLink.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.

Override IsOnExecuteLinked to check whether the OnExecute event handler of the action is linked to the event handler of the appropriate execution event of the client. The action and client are associated by the TBasicActionLink action link. Usually, an execution event of a client is the OnClick event.

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.

See Also