RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.OnCreateComponent Event

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

Pascal
property OnCreateComponent: TCreateComponentEvent;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!