Vcl.ComCtrls.TToolBar.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.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
説明
コンポーネントが追加されたことや,削除されようとしていることを伝える通知に応答します。
Notification メソッドは,コンポーネントがフォームに追加されたときや,削除されようとしているときに自動的に呼び出されます。
AComponent は,追加されたコンポーネントか,削除されようとしているコンポーネントです。
Operation は,AComponent が追加されたのか削除されようとしているのかを示します。
TToolBar に実装された Notification は,Images,HotImages,または DisabledImages プロパティの値であるイメージリストが削除されようとしているかどうかをチェックします。削除される場合,Nortification メソッドは,Images,HotImages,DisabledImages のいずれかのプロパティを nil (Delphi)または NULL (C++)にリセットします。