RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControlAction Class

TControlAction is the base class for all the actions that can be associated with some of the VCL controls.

Pascal
TControlAction = class(TCustomControlAction);
C++
class TControlAction : public TCustomControlAction;

Control actions can either be defined through code, or using the editor provided by a TActionManager component. In the latter case, a control action can be added to the list of available actions by clicking the "New Standard Action" option and selecting the "TControlAction" component in the "(No Category)" group.  

Control actions can be associated with different controls, like forms, buttons, and check boxes. If there is an action associated with the control, clicking the control automatically calls this action. To be more specific, the control's OnClick event handler calls the associated action. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!