TCustomActionList class
TCustomActionList - the ancestor class for
TActionList.Declaration
TCustomActionList = class(TLCLComponent)Inheritance
- TCustomActionList
- TLCLComponent
- TComponent
- TPersistent
- TObject
Descends from it: TActionList
Description
TCustomActionList - the ancestor class for
TActionList.
If you want to define your own action list class, you should derive it from
this class.
TActionList,
TAction,
TActionLink and
TContainedAction are used to centralize the implementation of user
commands, and can then be linked to the appropriate button, menu or another
component. This is an Object-Oriented programming strategy to reuse the code,
as opposed to the Event-Oriented approach of writing an OnClick event for
each component.
See also
Properties
Actions | public | Provides indexed access to actions in the list by their ordinal position. |
ActionCount | public | The total number of actions in the action list. |
Images | public | Image list with images for the actions in the list. |
State | public | State for the action: Normal, Suspended or SuspendedEnabled. |
Methods
AddAction | protected | Adds the specified action to the action list. |
RemoveAction | protected | Removes the specified action from the action list. |
Change | protected | Performs action needed when the action list or one of its Actions has been changed. |
GetChildren | protected | Executes the specified procedure for each of the children in Actions. |
Notification | protected | Handles the notification performed when a component is added to or removed from the class instance. |
SetChildOrder | protected | Set the order for the specified child (Action). |
SetImages | protected | Sets the value for the Images property. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
ActionByName | public | Returns an action identified by its name. |
ExecuteAction | public | Examines and executes the specified Action. |
GetEnumerator | public | Gets an enumerator for actions in the action list. |
IndexOfName | public | Gets the ordinal position for the action with the specified name. |
IsShortCut | public | Indicates whether the specified message contains a shortcut (accelerator key) for an action in the list. |
UpdateAction | public | Examines and updates the target for the specified Action. |
Events
OnChange | protected | Event handler signalled when the action list has been changed. |
OnExecute | protected | OnExecute - event handler for execution of the action. |
OnUpdate | protected | OnUpdate - event handler for updating the action. |
Inherited
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.
