RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenu.SetChildOrder Method

Ensures that the menu item indexes reflect the order in which they are loaded and saved.

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

SetChildOrder is called automatically when menus are loaded into memory. The Child parameter specifies the child object that was just loaded. The Order parameter specifies the order in which it was loaded. SetChildOrder assigns the MenuIndex for each child to match the order in which the items are loaded. 

 

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