Sign in Join
FPDoc Onlineexperiment

TCustomActionList class

In unit ActnList

TCustomActionList - the ancestor class for TActionList.

Declaration

pascal
TCustomActionList = class(TLCLComponent)

Inheritance

  1. TCustomActionList
  2. TLCLComponent
  3. TComponent
  4. TPersistent
  5. 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

ActionspublicProvides indexed access to actions in the list by their ordinal position.
ActionCountpublicThe total number of actions in the action list.
ImagespublicImage list with images for the actions in the list.
StatepublicState for the action: Normal, Suspended or SuspendedEnabled.

Methods

AddActionprotectedAdds the specified action to the action list.
RemoveActionprotectedRemoves the specified action from the action list.
ChangeprotectedPerforms action needed when the action list or one of its Actions has been changed.
GetChildrenprotectedExecutes the specified procedure for each of the children in Actions.
NotificationprotectedHandles the notification performed when a component is added to or removed from the class instance.
SetChildOrderprotectedSet the order for the specified child (Action).
SetImagesprotectedSets the value for the Images property.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
ActionByNamepublicReturns an action identified by its name.
ExecuteActionpublicExamines and executes the specified Action.
GetEnumeratorpublicGets an enumerator for actions in the action list.
IndexOfNamepublicGets the ordinal position for the action with the specified name.
IsShortCutpublicIndicates whether the specified message contains a shortcut (accelerator key) for an action in the list.
UpdateActionpublicExamines and updates the target for the specified Action.

Events

OnChangeprotectedEvent handler signalled when the action list has been changed.
OnExecuteprotectedOnExecute - event handler for execution of the action.
OnUpdateprotectedOnUpdate - 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.