System.Classes.TBasicActionLink.IsOnExecuteLinked

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsOnExecuteLinked: Boolean; virtual;

C++

virtual bool __fastcall IsOnExecuteLinked(void);

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TBasicActionLink

Description

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