RAD Studio VCL Reference
TReader.OnCreateComponent Event

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

property OnCreateComponent: TCreateComponentEvent;
__property TCreateComponentEvent OnCreateComponent;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!