FMX.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 | FMX.ActnList.pas FMX.ActnList.hpp |
FMX.ActnList | TCustomAction |
Description
Instantiates and initializes a FireMonkey TCustomAction object.
Applications do not need to call the constructor directly. Actions are created automatically when you add them to an action list component using New Action in the Action List editor at design time.
If you want to create an action at run time, assign a TActionList 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 calls an inherited System.Actions.TContainedAction.Create constructor and then initializes the Supported property with True
.