Sign in Join
FPDoc Onlineexperiment

ActnList unit

Defines classes for Actions and lists of Actions for use in LCL components.

actnlist.pas contains classes which implements actions used in LCL components. The following components are added to the Lazarus IDE component palette:

Standard Tab

  • TActionList

Registered but not displayed:

  • TAction

actnlist.pas is part of the Lazarus Component Library (LCL).

Classes and records

TActionclassTAction is the basic action object used in the LCL.
TActionLinkclassA link between an action and a client class.
TActionListclassTActionList - The basic actions list class.
TActionListEnumeratorclassImplements an enumerator for the Actions in TCustomActionList.
TContainedActionclassImplements an Action class which has a category and parent action list.
TCustomActionclassTCustomAction is the ancestor class for TAction.
TCustomActionListclassTCustomActionList - the ancestor class for TActionList.
TShortCutListclassA list of shortcuts (accelerator keys) for actions in an action list.

Procedures and functions

CreateActionfunctionCreates a new TBasicAction instance with the specified owner and class type.
EnumRegisteredActionsprocedureEnumerates the registered actions and calls a routine for values in Info.
RegisterprocedureRegisters components for use in the Lazarus IDE.
RegisterActionsprocedureRegisters the array of action classes using the specified category name.
UnRegisterActionsprocedureUnregisters the specified array of action class types.

Types

TActionEventprocedure typeSpecifies an event handler signalled to implement an action in TCustomActionList.
TActionLinkClasstypeTActionLinkClass - class of TActionLink.
TActionListStateenumerationRepresents state values for an action list.
TContainedActionClasstypeClass type for TContainedAction instances.
TEnumActionProcprocedure typeSpecifies a routine used to perform actions when enumerating actions.
THintEventprocedure typeSpecifies an event handler signalled to get the hint text for an action.

Constants

CreateActionProcconstantAddress of the routine used to create a new action in the action list editor.
EnumRegisteredActionsProcconstantAddress of the routine used to enumerate actions in the action list editor.
RegisterActionsProcconstantAddress of the routine used to register actions used in the action list editor in the Lazarus IDE.
UnRegisterActionsProcconstantAddress of the routine used to unregister actions used in the action list editor in the Lazarus IDE.

Variables

ApplicationActionComponentvariableTApplication instance used to update and execute actions.

Uses

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.