FMX.ActnList.TCustomViewAction.OnCreateComponent
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 型のイベント ハンドラには、次のパラメータがあります:
パラメータ | 説明 |
---|---|
|
イベントを発生させたアクションのインスタンス。 |
|
作成されたコンポーネントを返します。 |
このイベントのイベント ハンドラ内で作成できるのは、TFmxObject 型のコンポーネント オブジェクトのみです。 作成されたコンポーネントが TFmxObject の下位クラス オブジェクトでない場合は、例外が発生し、新規オブジェクトは破棄されます。