CategoryButtons.TCategoryButtons.OnEditing

From RAD Studio VCL Documentation (Japanese)
Jump to: navigation, search

Contents

Delphi の情報

ファイル CategoryButtons.pas

	property OnEditing: TCatButtonEditingEvent read FOnEditing write FOnEditing;


ユニット: CategoryButtons

種類: イベント

可視性: published

所属クラス: TCategoryButtons

C++ の情報

ファイル CategoryButtons.hpp

	__property TCatButtonEditingEvent OnEditing;


ユニット: CategoryButtons

種類: プロパティ

可視性: public

所属クラス: TCategoryButtons

説明

ユーザーがキャプションの Text プロパティの編集を開始すると、発生します。


Pascal


TCatButtonEditingEvent = procedure(Sender: TObject; Item: TBaseItem; var AllowEdit: Boolean) of object;


C++


typedef void __fastcall (__closure *TCatButtonEditingEvent)(System::TObject* Sender, TBaseItem* Item, bool &AllowEdit);


OnEditing イベント ハンドラを記述すると、ユーザーが TCategoryButtons 内の特定の基本項目のキャプションの編集を許可されているかどうかを判断できます。

Sender パラメータは、ボタンが属する TCategoryButtons です。

Item パラメータは、そのキャプションが編集された TBaseItem(ボタンまたはカテゴリ)です。

AllowEdit パラメータを false に設定すると、Item パラメータで指定した基本項目のユーザーによる編集を回避できます。

関連リンク

Personal tools