FMX.Controls.TControlActionLink.SetOnExecute

From RAD Studio API Documentation

Delphi

procedure SetOnExecute(Value: TNotifyEvent); override;

C++

virtual void __fastcall SetOnExecute(System::Classes::TNotifyEvent Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControlActionLink

Description

Introduces an interface for setting the execution event handler for a client if the action link associates execution event handlers of the client and action. {{#multireplace:FMX.Controls.TControlActionLink.SetOnExecute|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TBasicActionLink.SetOnExecute|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TBasicActionLink.SetOnExecute|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Introduces an interface for setting the execution event handler for a client if the action link associates execution event handlers of the client and action.

In the TBasicActionLink class, SetOnExecute does nothing.

Override SetOnExecute to set the execution event handler to the client. SetOnExecute can call IsOnExecuteLinked to check whether the TBasicActionLink action link associates execution event handlers of the client and action and sets the event handler specified by the Value parameter. Usually, an execution event of a client is the OnClick event.

See Also