表示: Delphi C++
表示設定

System.Classes.TBasicAction.Notification

提供:XE2 API Documentation
移動: 案内, 検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TBasicAction

説明

コンポーネントが作成または破棄されたときに応答します。

アプリケーションで Notification メソッドを呼び出さないでください。Notification は,AComponent で指定されたコンポーネントが,Operation の指定のように,挿入または削除されようとすると自動的に呼び出されます。

TBasicAction では Notification メソッドをオーバーライドして,ActionComponent プロパティの値になっているコンポーネントが解放されるかどうかを調べます。コンポーネントが解放される場合,TBasicAction は,ActionComponent プロパティを nil (Delphi)または NULL (C++)に設定します。

関連項目

以前のバージョン
他の言語