Vcl.ComCtrls.TPageControl.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.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TPageControl

Description

Assigns indexes to the pages that reflect the order in which pages are loaded from a stream.

SetChildOrder is called automatically when the children of the page control are loaded from a stream. It assigns each page an index that reflects the order in which pages are loaded and saved.

The Child parameter is a page of the page control. The Order parameter indicates when the page is loaded or saved. The first page loaded or saved is called with Order set to 0, the second with Order set to 1, and so on.

SetChildOrder assigns the PageIndex property of the individual pages to the value of Order.

See Also