TActionList class
TActionList - The basic actions list class.Declaration
TActionList = class(TCustomActionList)Inheritance
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.
Properties
Images | published | Image list with images for the actions in the list. |
State | published | State for the action: Normal, Suspended or SuspendedEnabled. |
Events
OnChange | published | Event handler signalled when the action list has been changed. |
OnExecute | published | OnExecute - event handler for execution of the action. |
OnUpdate | published | OnUpdate - event handler for updating the action. |
Inherited
From TCustomActionList (17)
ActionByName ActionCount Actions AddAction Change Create Destroy ExecuteAction GetChildren GetEnumerator IndexOfName IsShortCut Notification RemoveAction SetChildOrder SetImages UpdateAction
From TLCLComponent (8)
DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass WSRegisterClass
From TComponent (68)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (5)
Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (36)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
