FMX.StdActns.TViewAction.OnCreateComponent

From RAD Studio API Documentation

Delphi

property OnCreateComponent: TOnCreateComponent read FOnCreateComponent write FOnCreateComponent;

C++

__property OnCreateComponent;

Properties

Type Visibility Source Unit Parent
event published
FMX.StdActns.pas
FMX.StdActns.hpp
FMX.StdActns TViewAction

Description

Is fired when the target component is created. {{#multireplace:FMX.StdActns.TViewAction.OnCreateComponent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.ActnList.TCustomViewAction.OnCreateComponent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.ActnList.TCustomViewAction.OnCreateComponent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Is fired when the target component is created.

Event handlers of the TOnCreateComponent type have the following parameters:

Parameter Description
Sender Is the instance of the action that fired the event.
NewComponent Returns the created component.

Only a component object of the TFmxObject type can be created in the event handler of this event. If the created component is not a descendant of TFmxObject, then an exception is raised and a new object is destroyed.

See Also