FMX.ActnList.TCustomViewAction.OnCreateComponent

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property OnCreateComponent: TOnCreateComponent read FOnCreateComponent write FonCreateComponent;

C++

__property TOnCreateComponent OnCreateComponent = {read=FOnCreateComponent, write=FOnCreateComponent};

プロパティ

種類 可視性 ソース ユニット
event protected
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TCustomViewAction


説明

ターゲット コンポーネントが作成された際に、発生します。

TOnCreateComponent 型のイベント ハンドラには、次のパラメータがあります:

パラメータ 説明
Sender イベントを発生させたアクションのインスタンス。
NewComponent 作成されたコンポーネントを返します。

このイベントのイベント ハンドラ内で作成できるのは、TFmxObject 型のコンポーネント オブジェクトのみです。 作成されたコンポーネントが TFmxObject の下位クラス オブジェクトでない場合は、例外が発生し、新規オブジェクトは破棄されます。

関連項目