[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'ActnList' (#lcl)

TAction

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TAction is the basic action object used in the LCL.

Declaration

Source position: actnlist.pas line 225

type TAction = class(TCustomAction)

public

  constructor Create(); override;

  

Constructor for the class instance.

published

  property AutoCheck: Boolean;

  

AutoCheck - whether the control (e.g. a CheckBox) is to be automatically checked.

  property Caption: TTranslateString;

  

The Caption to be used if this action is associated with a visible component.

  property Checked: Boolean;

  

Whether the check box control associated with the action is Checked (default False).

  property DisableIfNoHandler: Boolean;

  

Prevents the action from executing if an OnExecute handler is not assigned in the action.

  property Enabled: Boolean;

  

Enabled - whether this action is able to be used (default is True).

  property GroupIndex: Integer;

  

GroupIndex- Index of the action within its group.

  property HelpContext: THelpContext;

  

HelpContext - the index for a context-based help message.

  property HelpKeyword: string;

  

HelpKeyWord - the keyword of a context-based help message.

  property HelpType: THelpType;

  

HelpType - the sort of help message to be offered: default Context-based.

  property Hint: TTranslateString;

  

Hint - a pop-up message that appears when the mouse hovers over an object.

  property ImageIndex: TImageIndex;

  

ImageIndex - the index number of the image to be associated with this action.

  property OnExecute;

  

Event called when action is executed.

  property OnHint: THintEvent;

  

OnHint - action to be taken when a hint is required.

  property OnUpdate;

  

Event handler signalled to update an action when the application is idle.

  property SecondaryShortCuts: TShortCutList;

  

SecondaryShortCuts - a stringlist containing shortcuts.

  property ShortCut: TShortCut;

  

ShortCut- an index to a shortcut list.

  property Visible: Boolean;

  

Visible - is this action visible? (default True).

end;

Inheritance

TAction

  

TAction is the basic action object used in the LCL.

|

TCustomAction

  

TCustomAction is the ancestor class for TAction.

|

TContainedAction

  

Implements an Action class which has a category and parent action list.

|

TBasicAction

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

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

TCustomAction

  

TCustomAction is the ancestor class for TAction.


Version 3.2 Generated 2024-02-25 Home