[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 129

`type TActionList = class(TCustomActionList)`
`published`
`property Images;` |  | The Images from an ImageList to be associated with the actions, eg in a Menu display
`property State;` |  | State of the action : Normal, Suspended or SuspendedEnabled
`property OnChange;` |  | OnChange - event handler for a change in the action
`property OnExecute;` |  | OnExecute - event handler for execution of the action
`property OnUpdate;` |  | OnUpdate - event handler for updating the action
`end;`

## Inheritance

`TActionList` |  | TActionList - The basic actions list class
`TCustomActionList` |  | TCustomActionList - the ancestor class for TActionList
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TActionList - The basic actions list class

TActionList is the last component on the "Standard" component pallete 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 doesn't 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

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