Vcl.Controls.TControl.GetActionLinkClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetActionLinkClass: TControlActionLinkClass; dynamic;

C++

DYNAMIC TControlActionLinkClass __fastcall GetActionLinkClass();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Returns the appropriate action link class that is associated with the control class.

GetActionLinkClass returns the appropriate class type for the action link used with a control. This class is used internally to create an action link object for the control when it has an associated action. The action link links the action to the control client. Each Action link class is designed to link specific properties and event handlers of the action to its client, based on the types of properties the client supports.

As implemented in TControl, GetActionLinkClass returns the TControlActionLink class type, which associates the ShowHint, Caption, Enabled, and Visible properties with the OnClick event handler. Descendants of TControl override this method to specify a descendant of TControlActionLink that handles their configuration of properties and events.

See Also