[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

InitInheritedComponent

Initializes a component descending from RootAncestor

Declaration

Source position: classesh.inc line 1631

function InitInheritedComponent(

  Instance: TComponent;

  RootAncestor: TClass

):Boolean;

Description

InitInheritedComponentshould be called from a constructor to read properties of the component Instancefrom the streaming system. The RootAncestorclass is the root class from which Instanceis a descendent. This must be one of TDatamodule, TCustomFormor TFrame.

The function returns Trueif the properties were successfully read from a stream or Falseif some error occurred.

See also

ReadComponentRes

  

Read component properties from a resource in the current module

ReadComponentResEx

  

Read component properties from a resource in the specified module

ReadComponentResFile

  

Read component properties from a specified resource file