System.Actions.RegisterActionsProc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

RegisterActionsProc: procedure(const CategoryName: string;
const AClasses: array of TBasicActionClass;
Resource: TComponentClass) = nil;

C++

extern DELPHI_PACKAGE void __fastcall (*RegisterActionsProc)(const System::UnicodeString CategoryName, System::Classes::TBasicActionClass const *AClasses, const int AClasses_High, System::Classes::TComponentClass Resource);

Properties

Type Visibility Source Unit Parent
variable public
System.Actions.pas
System.Actions.hpp
System.Actions System.Actions

Description

The global procedural variable that stores a procedure that should register action classes so that they appear in the list of standard actions in the Action List editor or Action Manager.

The RegisterActionsProc procedural variable should store a procedure that registers the specified set of action classes. The IDE should assign the proper procedure to the RegisterActionsProc variable.

The RegisterActionsProc procedural variable 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.

Note: In C++, the AClasses_Size parameter specifies the index of the last entry in the AClasses array (one less than the number of classes to register).
Resource

Lets you assign default values to the properties of the actions being registered. Resource is the descendant of the TDataModule class that contains instances of the action classes listed by AClasses, where the properties of those instances are set to the default values. This parameter can be set to nil (Delphi) or NULL (C++) if there is no need to assign default values.

The default value is nil (Delphi) or NULL (C++).

See Also