表示: 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++)に設定します。