System.Actions.RegisterActions
Delphi
procedure RegisterActions(const CategoryName: string; const AClasses: array of TBasicActionClass;
Resource: TComponentClass);
C++
extern DELPHI_PACKAGE void __fastcall RegisterActions(const System::UnicodeString CategoryName, System::Classes::TBasicActionClass const *AClasses, const System::NativeInt AClasses_High, System::Classes::TComponentClass Resource);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Actions.pas System.Actions.hpp |
System.Actions | System.Actions |
Description
Registers action classes so that they appear in the list of standard actions in the Action List editor or Action Manager.
RegisterActions registers an action as a standard action in the IDE, so that users can choose them in action-related editors.
To register your own action classes so that they can be added to the Standard Action Classes list, call RegisterActions to register them.
Classes of predefined standard actions are registered with the RegisterActions method by the RAD Studio automatically.
RegisterActions has the following parameters:
Parameter | Description |
---|---|
CategoryName
|
Specifies the value of the actions' Category property. |
AClasses
|
Is an array of names of action classes to register.
|
Resource
|
Lets you assign default values to the properties of the actions being registered. |