Vcl.ComCtrls.TToolBar.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.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++)にリセットします。

関連項目