FMX.ActnList.TCustomViewAction.OnCreateComponent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCreateComponent: TOnCreateComponent read FOnCreateComponent write FonCreateComponent;

C++

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

Properties

Type Visibility Source Unit Parent
event protected
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TCustomViewAction

Description

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