RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.OnFindComponentClass Event

Occurs when a reader first reads the name of a component class.

Pascal
property OnFindComponentClass: TFindComponentClassEvent;
C++
__property TFindComponentClassEvent OnFindComponentClass;

The ReadComponent method generates an OnFindComponentClass event when it reads the class name for the component it is loading. An OnFindComponentClass event handler can replace the class reference with a different class to change the type of component that gets loaded. 

 

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