RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageControl.SetChildOrder Method

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

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

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!