RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.GetActionLinkClass Method

Returns the associated action link class.

Pascal
function GetActionLinkClass: TControlActionLinkClass; override;
C++
virtual __fastcall TControlActionLinkClass GetActionLinkClass();

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 TWinControl, GetActionLinkClass returns the TWinControlActionLink class type, which associates the HelpContext, ShowHint, Caption, Enabled and Visible properties and the OnClick event handler. Descendants of TWinControl override this method to specify a descendant of TControlActionLink that handles their configuration of properties and events. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!