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

# TActionList

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

TActionList - The basic actions list class.

## Declaration

Source position: actnlist.pas line 122

`type TActionList = class(TCustomActionList)`
`published`
`property Images: TCustomImageList;` |  | Image list with images for the actions in the list.
`property State: TActionListState;` |  | State for the action: Normal, Suspended or SuspendedEnabled.
`property OnChange: TNotifyEvent;` |  | Event handler signalled when the action list has been changed.
`property OnExecute: TActionEvent;` |  | OnExecute - event handler for execution of the action.
`property OnUpdate: TActionEvent;` |  | OnUpdate - event handler for updating the action.
`end;`

## Inheritance

`TActionList` |  | TActionList - The basic actions list class.
`TCustomActionList` |  | TCustomActionList - the ancestor class for TActionList.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TActionList - The basic actions list class. TActionList is the last component on the "Standard" component palette on the Lazarus IDE.

To use an ActionList, click on the icon on the IDE Standard Components toolbar, then click anywhere on the main form and an ActionList icon will appear. It does not matter where you position it, because it is not visible at run-time.

You can add, remove or modify actions on the list by right-clicking on the ActionList icon on the form editor and then choosing "Edit action list...", or by double-clicking on the icon with the left mouse button. This will open the "Action List Editor".

You can now use the "+" and "-" buttons to add and remove actions. The ActionList editor menu allows you to select standard actions from a selection (option 'New Standard Action') or create a new action (option 'New Action'). To edit an action, click it and then open the object inspector. To add code to be executed when an action is triggered, double-click the action's name on the "Action List Editor".

The TActionList class introduces very few properties of its own, but inherits a lot from its ancestor, TCustomActionList, and related components TAction, TCustomAction, TContainedAction and TBasicAction.

Each entry in the ActionList appears in the Object Inspector as an instance of TAction, and its properties are accessible and modifiable from the Object Inspector.