RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.SetChildOrder Method

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

Pascal
procedure SetChildOrder(Child: TComponent; Order: Integer); override;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!