FMX.StdActns.TViewAction.OnCreateComponent

From RAD Studio API Documentation
Jump to: navigation, search

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.

FMX.StdActns.TViewAction.OnCreateComponent inherits from FMX.ActnList.TCustomViewAction.OnCreateComponent. All content below this line refers to FMX.ActnList.TCustomViewAction.OnCreateComponent.

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