Vcl.Menus.TMenuItem.SetChildOrder

From RAD Studio API Documentation

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 TMenuItem

Description

Sets the visual ordering of a child control. {{#multireplace:Vcl.Menus.TMenuItem.SetChildOrder|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TComponent.SetChildOrder|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TComponent.SetChildOrder|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Sets the visual ordering of a child control.

SetChildOrder is used internally in the component streaming system. It is not necessary to call it directly.

Derived classes override this method to actually implement the ordering. TWinControl uses this ordering information to Z-align the controls.

See Also