System.Classes.TReader.OnCreateComponent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCreateComponent: TCreateComponentEvent read FOnCreateComponent write FOnCreateComponent;

C++

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

Properties

Type Visibility Source Unit Parent
event public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

Occurs when the reader has read a component's class but has not yet instantiated the component.

OnCreateComponent is used internally to provide an alternate mechanism for instantiating components. If OnCreateComponent returns a component as the value of the Component parameter, the Reader uses that instance instead of calling the component's constructor.

OnCreateComponent is an event handler of type System.Classes.TCreateComponentEvent.

See Also