API: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

Instantiates and initializes a VCL TCustomAction object.

Vcl.ActnList.TAction.Create inherits from Vcl.ActnList.TCustomAction.Create. All content below this line refers to Vcl.ActnList.TCustomAction.Create.

Instantiates and initializes a VCL TCustomAction object.

Applications do not need to call the constructor directly. Actions are created automatically when you add them to an action manager (in the Action Manager editor) or action list component (in the Action List editor) at design time.

If you want to create an action at run time, assign a TActionList or TActionManager component to its ActionList property after calling Create.

AOwner is the component that is responsible for freeing the action. It becomes the value of the Owner property.

Create simply calls an inherited System.Actions.TContainedAction.Create constructor.

See Also