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

TComponent.GetChildren

Must be overridden by descendents to return all child components that must be streamed.

Declaration

Source position: classesh.inc line 1603

protected procedure TComponent.GetChildren(

  Proc: TGetChildProc;

  Root: TComponent

); dynamic;

Description

GetChildren is called by the streaming system to determine which child components should be streamed as well when the component is being streamed. By default, no child components are streamed, i.e. the TComponent implementation is empty.

TComponent descendents should override this method. For each child that needs to be streamed, Proc should be called with as an argument the child component that must be streamed. The Root argument contains the root component relative to which all streaming is done.

See also

TComponent.WriteState

  

Writes the component to a stream.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.