RAD Studio VCL Reference
TWinControl.SetChildOrder Method

Changes the order in which the child component appears in the list of child components returned by the GetChildren method.

procedure SetChildOrder(Child: TComponent; Order: Integer); override;
virtual __fastcall SetChildOrder(TComponent * Child, int Order);

Use SetChildOrder when you want to change the order in which child objects are streamed in. Specify the child component whose order you want to change as the value of the Child parameter. Indicate the position you want the component to be in as the value of the Order parameter. 

When SetChildOrder is called, items previously below the child's old position move up, and those below the new position move down. 


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