Vcl.ActnList.TCustomAction.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TCustomAction(System::Classes::TComponent* AOwner);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.ActnList.pas Vcl.ActnList.hpp |
Vcl.ActnList | TCustomAction |
Description
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.