|
RAD Studio VCL Reference
|
Reads components and their properties from a stream in a resource file format.
function ReadComponentRes(Instance: TComponent): TComponent;
__fastcall TComponent * ReadComponentRes(TComponent * Instance);
ReadComponentRes is called automatically by the global routine ReadComponentResFile. It can also be called directly if the current position of the stream points to a component written using the WriteComponentRes method.
ReadComponentResFile creates a file stream object, which then calls its ReadComponentRes method.
ReadComponentRes first calls the ReadResHeader method to read a resource header from the stream. If the stream does not contain a resource header at the current position, ReadResHeader will raise an EInvalidImage exception. ReadComponentRes then calls ReadComponent to read the properties that must be set on Instance.
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|