System.Actions.RegisterActions

提供: RAD Studio API Documentation
移動先: 案内検索

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 int AClasses_High, System::Classes::TComponentClass Resource);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Actions.pas
System.Actions.hpp
System.Actions System.Actions


説明

アクション クラスを登録して、アクション リスト エディタアクション マネージャの標準アクションのリストに表示されるようにします。

RegisterActions は、アクションを IDE の標準アクションとして登録し、ユーザーがアクション関連のエディタで選択できるようにします。

独自のアクション クラスも標準アクション クラスリストに追加されるよう登録するには、RegisterActions を呼び出します。

定義済み標準のアクションのクラスは、RAD Studioによって自動的に RegisterActions メソッドで登録されています。

RegisterActions には、次のパラメータがあります:

パラメータ 説明
CategoryName

アクションの Category プロパティの値を示します。

AClasses

登録するアクション クラスの名前の配列です。

メモ: C++ の場合、AClasses_Size パラメータに AClasses 配列の最後の項目のインデックス(登録するクラス数から 1 を引いた値)を指定します。
Resource

登録対象アクションのプロパティにデフォルト値を代入するためのものです。 ResourceTDataModule クラスの下位クラスで、AClasses 内のアクション クラスのインスタンスが含まれており、そのインスタンスのプロパティがデフォルト値に設定されます。 デフォルト値を代入する必要がない場合には、このパラメータを nil(Delphi)または NULL(C++)に設定することができます。

関連項目