TCustomAction is the base class for actions meant to be used with menu items and controls.
TCustomAction = class(TContainedAction);
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:
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!