Vcl.Menus.TMenu.SetChildOrder
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.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenu |
Description
Ensures that the menu item indexes reflect the order in which they are loaded and saved.
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.