Vcl.ActnList.TCustomActionList.Notification

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

Delphi

procedure Notification(AComponent: TComponent; Operation: TOperation); override;

C++

virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.ActnList.pas
Vcl.ActnList.hpp
Vcl.ActnList TCustomActionList

説明

オブジェクトが作成または破棄されたときの通知に応答します。

Notification メソッドは,AComponent で指定されたコンポーネントが Operation で指定されているとおりに挿入または削除されることをアクションリストに通知します。デフォルトでは,コンポーネントは自分が所有しているコンポーネント(もしあれば)に通知を送ります。

TCustomActionListNotification をオーバーライドして,リストからのイメージが破棄されたときに Image プロパティを更新し,リスト内のアクションが破棄されたときに Action プロパティを更新します。

関連項目