Vcl.ActnList.TAction.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TAction(System::Classes::TComponent* AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.ActnList.pas
Vcl.ActnList.hpp
Vcl.ActnList TAction

Description

Creates and initializes a TAction object.

Applications do not usually create action objects explicitly. Actions are created automatically when you add them to an action manager or action list component at design time. When instantiating TAction at run time, assign a TActionList or TActionManager component to the new action's ActionList property after calling Create.

Create sets the DisableIfNoHandler to True, that is, the action is inaccessible if it does not have an OnExecute event handler.

See Also