Vcl.ActnList.TCustomActionList.Notification
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 で指定されているとおりに挿入または削除されることをアクションリストに通知します。デフォルトでは,コンポーネントは自分が所有しているコンポーネント(もしあれば)に通知を送ります。
TCustomActionList は Notification をオーバーライドして,リストからのイメージが破棄されたときに Image プロパティを更新し,リスト内のアクションが破棄されたときに Action プロパティを更新します。