TAction class
TAction is the basic action object used in the LCL.Declaration
TAction = class(TCustomAction)Inheritance
Descends from it: TDataSetAction TEditAction THelpAction
Description
TAction is the basic action object used in the LCL. It redeclares
many properties inherited from TCustomAction on the public section, but does
not add any new features. For more details look at the See Also section for
TCustomAction.
The properties of each Action can be modified at design time in the Object Inspector.
See also
Properties
AutoCheck | published | AutoCheck - whether the control (e.g. a CheckBox) is to be automatically checked. |
Caption | published | The Caption to be used if this action is associated with a visible component. |
Checked | published | Whether the check box control associated with the action is Checked (default False). |
DisableIfNoHandler | published | Prevents the action from executing if an OnExecute handler is not assigned in the action. |
Enabled | published | Enabled - whether this action is able to be used (default is True). |
GroupIndex | published | GroupIndex- Index of the action within its group. |
HelpContext | published | HelpContext - the index for a context-based help message. |
HelpKeyword | published | HelpKeyWord - the keyword of a context-based help message. |
HelpType | published | HelpType - the sort of help message to be offered: default Context-based. |
Hint | published | Hint - a pop-up message that appears when the mouse hovers over an object. |
ImageIndex | published | ImageIndex - the index number of the image to be associated with this action. |
SecondaryShortCuts | published | SecondaryShortCuts - a stringlist containing shortcuts. |
ShortCut | published | ShortCut- an index to a shortcut list. |
Visible | published | Visible - is this action visible? (default True). |
Methods
Create | public | Constructor for the class instance. |
Events
OnExecute | published | Event called when action is executed. |
OnHint | published | OnHint - action to be taken when a hint is required. |
OnUpdate | published | Event handler signalled to update an action when the application is idle. |
Inherited
From TCustomAction (20)
AssignTo Destroy DoHint Execute Grayed HandleShortCut SavedEnabledState SetAutoCheck SetCaption SetChecked SetEnabled SetGroupIndex SetHelpContext SetHelpKeyword SetHelpType SetHint SetImageIndex SetName SetShortCut SetVisible
From TContainedAction (8)
ActionList Category GetParentComponent HasParent Index ReadState SetParentComponent Update
From TBasicAction (14)
ActionComponent Change ClientCount Clients ExecuteTarget GetClient HandlesTarget Notification OnChange RegisterChanges SetOnExecute Suspended UnRegisterChanges UpdateTarget
From TComponent (68)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetTypeInfo GetTypeInfoCount iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (4)
Assign FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
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 newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
