Sign in Join
FPDoc Onlineexperiment

InitInheritedComponent function

In unit Classes

Initializes a component descending from RootAncestor.

Declaration

pascal
function InitInheritedComponent(Instance: TComponent; 
 RootAncestor: TClass): Boolean

Description

InitInheritedComponent should be called from a constructor to read properties of the component Instance from the streaming system. The RootAncestor class is the root class from which Instance is a descendant. This must be one of TDatamodule, TCustomForm or TFrame.

The function returns True if the properties were successfully read from a stream or False if some error occurred.

See also

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