ActnList.TCustomAction

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From ActnList.pas

TCustomAction = class(TContainedAction)


Unit: ActnList

Type: class

Inherited Class Members: ActnList.TCustomAction Members

Class Properties: ActnList.TCustomAction Properties

Class Methods: ActnList.TCustomAction Methods

Class Fields: ActnList.TCustomAction Fields

Class Constructors & Destructors: ActnList.TCustomAction Constructors

Class Events: ActnList.TCustomAction Events

C++ Information

From ActnList.hpp

TCustomAction = class(TContainedAction)


Unit: ActnList

Type: class

Inherited Class Members: ActnList.TCustomAction Members

Class Properties: ActnList.TCustomAction Properties

Class Methods: ActnList.TCustomAction Methods

Class Fields: ActnList.TCustomAction Fields

Class Constructors & Destructors: ActnList.TCustomAction Constructors

Class Events: ActnList.TCustomAction Events

Description

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


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

See Also

Personal tools
Translations
Newest Version