Sign in Join
FPDoc Onlineexperiment

TAbstractObjectReader.BeginComponent procedure

Member of TAbstractObjectReaderpublicIn unit Classes

Marks the reading of a new component.

Declaration

pascal
procedure BeginComponent(var Flags: TFilerFlags; 
 var AChildPos: Integer; 
 var CompClassName: string; var CompName: string)
 ; virtual; abstract; overload
procedure BeginComponent(var Flags: TFilerFlags; 
 var AChildPos: Integer; 
 var CompUnitName: string; 
 var CompClassName: string; var CompName: string)
 ; virtual; overload

Description

This method is called when the streaming process wants to start reading a new component.

Descendant classes should override this method to read the start of a component new component definition and return the needed arguments. Flags should be filled with any flags that were found at the component definition, as well as AChildPos. The CompClassName should be filled with the class name of the streamed component, and the CompName argument should be filled with the name of the component.

AChildPos is used to change the ordering in which components appear below their parent component when streaming descendant forms.

See also

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