[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'ActnList' (#lcl)

# TAction

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TAction is the basic action object used on the LCL.

## Declaration

Source position: actnlist.pas line 231

`type TAction = class(TCustomAction)`
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomAction: calls inherited Create then initialises some local variables
`published`
`property AutoCheck;` |  | AutoCheck - whether the control (eg a CheckBox) is to be automatically checked
`property Caption;` |  | The Caption to be used if this action is associated with a visible component
`property Checked;` |  | Whether the CheckBox associated with the action is Checked (default False)
`property DisableIfNoHandler;` |  | DisableIfNoHandler - don't use this action if no Handler has been provided
`property Enabled;` |  | Enabled - whether this action is able to be used (default True)
`property GroupIndex;` |  | GroupIndex - Index of the action within its group
`property HelpContext;` |  | HelpContext - the index for a context-based help message
`property HelpKeyword;` |  | HelpKeyWord - the keyword of a context-based help message
`property HelpType;` |  | HelpType - the sort of help message to be offered: default Context-based
`property Hint;` |  | Hint - a pop-up message that appears when the mouse hovers over an object
`property ImageIndex;` |  | ImageIndex - the index number of the image to be associated with this action
`property OnExecute;`
`property OnHint;` |  | OnHint - action to be taken when a hint is required
`property OnUpdate;`
`property SecondaryShortCuts;` |  | SecondaryShortCuts - a stringlist containing shortcuts
`property ShortCut;` |  | ShortCut - an index to a shortcut list
`property Visible;` |  | Visible - is this action visible? (default True)
`end;`

## Inheritance

`TAction` |  | TAction is the basic action object used on the LCL.
`TCustomAction` |  | TCustomAction is the ancestor class for TAction
`TContainedAction` |  | TContainedAction - parent class for TCustomAction; defines some properties especially relationships with parents
`TBasicAction`
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TAction is the basic action object used on the LCL.

It redeclares many properties inherited from TCustomAction on the public section, but does not add any new features. For more details look at the See Also section for TCustomAction.

The properties of each Action can be modified at design time in the Object Inspector

## See also

TCustomAction |  | TCustomAction is the ancestor class for TAction

The latest version of this document can be found at lazarus-ccr.sourceforge.net.