RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAction.Create Constructor

Instantiates and initializes a TCustomAction object.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TCustomAction(TComponent * AOwner);

Applications do not need to call the constructor directly. Actions are created automatically when you add them to an action manager or action list component at design time. If you want to create an action at runtime, 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!