RAD Studio VCL Reference
TWinControl.GetChildren Method

Calls a specified method for each child of the control.

procedure GetChildren(Proc: TGetChildProc; Root: TComponent); override;
virtual __fastcall GetChildren(TGetChildProc Proc, TComponent * Root);

GetChildren is called by the streaming system that loads and saves components. Applications seldom need to call this routine. 

GetChildren executes the callback specified by the Proc parameter for every child control listed by the Controls property that lists the Root parameter as its Owner. 

Override GetChildren to limit or augment which child controls are saved with the control. When overriding GetChildren, call the procedure passed as the Proc parameter for every child control that should be saved. The Root parameter indicates the component (usually a form) that owns the control. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!