Creates an action of a specified type.
function CreateAction(AOwner: TComponent; ActionClass: TBasicActionClass): TBasicAction;
TBasicAction CreateAction(TComponent * AOwner, TBasicActionClass ActionClass);
ActnList
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) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|