Skip to content

ReadComponentResFile

Read component properties from a specified resource file.

Declaration

Source position: classesh.inc line 3094

function ReadComponentResFile(const FileName: string; 
                             Instance: TComponent) : TComponent;

Description

ReadComponentResFile starts reading properties for Instance from the file FileName. It creates a filestream from FileName and then calls the TStream.ReadComponentRes method to read the state of the component from the stream.

See also

Name Description
TStream.ReadComponentRes Reads component data and resource header from a stream.
WriteComponentResFile Write component properties to a specified resource file.