TAction = class(TCustomAction)
class PASCALIMPLEMENTATION TAction : public TCustomAction
TAction is the generic class for action objects that implement user commands across a range of different controls.
TAction is a generic action component. It can be added to action managers or action lists when there is no predefined action class that implements the desired response to user commands. Unlike predefined action classes, which have built-in methods that respond when users click the client controls, TAction has no built-in response to user commands. Instead, when using TAction, you can provide the response when the action "fires" by writing an OnExecute event handler, and configure the properties of TAction to reflect current conditions by writing an OnUpdate event handler.
Action objects are used to centralize the response to user commands (actions) and to represent user interface elements in applications that use action bands.
TAction can also act as a base class for predefined action classes. You can derive from TAction if you want to retain the published scope of TCustomAction members, or derive from TCustomAction if you want to modify their scope.
For predefined actions that augment the behavior of TAction, see the action classes in the QStdActns unit.
For predefined actions that augment the behavior of TAction, see the action classes in the StdActns, DBActns, and ExtActns units.