CategoryButtons.TCategoryButtons.OnEdited

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

Contents

Delphi の情報

ファイル CategoryButtons.pas

	property OnEdited: TCatButtonEditedEvent read FOnEdited write FOnEdited;


ユニット: CategoryButtons

種類: イベント

可視性: published

所属クラス: TCategoryButtons

C++ の情報

ファイル CategoryButtons.hpp

	__property TCatButtonEditedEvent OnEdited;


ユニット: CategoryButtons

種類: プロパティ

可視性: public

所属クラス: TCategoryButtons

説明

ユーザーがカテゴリ ボタンの Caption プロパティを編集した後、発生します。


Pascal


TCatButtonEditedEvent = procedure(Sender: TObject; Item: TBaseItem; var S: string) of object;


C++


typedef void __fastcall (__closure *TCatButtonEditedEvent)(System::TObject* Sender, TBaseItem* Item, System::UnicodeString &S);


OnEdited イベント ハンドラを記述すると、この TCategoryButtons 内の TBaseItem(ボタンまたはカテゴリ)のキャプションに対してユーザーが行った変更に対応できます。

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

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

S パラメータは項目の Caption プロパティの新しい値です。項目のキャプションは、ユーザーの編集がコミットされる前に、OnEdited イベント ハンドラ内で変更することができます。

関連リンク

Personal tools