RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAction Class

TCustomAction is the base class for actions meant to be used with menu items and controls.

Pascal
TCustomAction = class(TContainedAction);
C++
class TCustomAction : public TContainedAction;

TCustomAction introduces support for the properties and methods of menu items and controls that are linked to action objects. Use TCustomAction as a base class when deriving your own actions that publish specific properties of associated controls.  

Action objects centralize the response to user commands (actions) and represent user interface elements in applications that use action bars. They provide an easy way to synchronize, for example, the enabled state and caption of a speed button and a menu item, and handle the response when users click on these components. Each such component, called the client, has its properties dynamically updated by the action and forwards user actions to the action for a response.  

You can work with actions at design-time in the action list editor of an action list or the customize dialog of an action manager. The action list or action manager is a container for actions, which it organizes into categories. 

Component and control properties and events that are supported in TCustomAction, either directly or through an ancestor, are: 

Caption 

Checked 

Enabled 

HelpContext 

Hint 

ImageIndex 

ShortCut 

Visible 

OnHint 

OnUpdate 

OnExecute 

 

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