Sign in Join
FPDoc Onlineexperiment

ReadComponentResEx function

In unit Classes

Read component properties from a resource in the specified module.

Declaration

pascal
function ReadComponentResEx(HInstance: THandle; const ResName: string)
: TComponent

Description

ReadComponentRes will locate the resource ResName in instance HInstance (the current program, normally). It returns Nil if the resource was not found. It returns an instantiated component with all properties found in the stream, applied. This requires that the component is registered using registerclass.

Errors

The function may raise an exception if the stream contains wrong data.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.