RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ActnList.CreateAction Function

Creates an action of a specified type.

Pascal
function CreateAction(AOwner: TComponent; ActionClass: TBasicActionClass): TBasicAction;
C++
TBasicAction CreateAction(TComponent * AOwner, TBasicActionClass ActionClass);

CreateAction creates an action of type ActionClass. AOwner is typically the form or data module. CreateAction is called automatically when you add an action to an action list or action manager at design time. Calling this function does the same thing as calling ActionClass.Create (Delphi) or the constructor of the specified action class (C++). The only exception is that CreateAction uses the Resource parameter of the RegisterActions procedure to initialize the values of the new action object. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!