System.Classes.TBasicAction.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TBasicAction(TComponent* AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes TBasicAction

Description

Instantiates and initializes a TBasicAction object.

Applications do not need to instantiate TBasicAction directly. Actions are created automatically when you choose New Action in the Action List editor.

If you want to create an action at run time, you should call the Create constructor of a FireMonkey action (FMX.ActnList.TAction) or VCL action (Vcl.ActnList.TAction), or any of their subclasses. The Create constructors assign a TActionList component to the ActionList property of the created action.

Create calls the inherited constructor and then creates a list of clients of the created action.

See Also