Vcl.Controls.TWinControl.SetChildOrder

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetChildOrder(Child: TComponent; Order: Integer); override;

C++

DYNAMIC void __fastcall SetChildOrder(System::Classes::TComponent* Child, int Order);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

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

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.

See Also