Vcl.ActnMan.TActionClientLink.SetOnExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetOnExecute(Value: TNotifyEvent); override;

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ActnMan.pas
Vcl.ActnMan.hpp
Vcl.ActnMan TActionClientLink

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.

Vcl.ActnMan.TActionClientLink.SetOnExecute inherits from System.Classes.TBasicActionLink.SetOnExecute. All content below this line refers to System.Classes.TBasicActionLink.SetOnExecute.

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