Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.SetZOrder

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetZOrder(TopMost: Boolean); override;

C++

DYNAMIC void __fastcall SetZOrder(bool TopMost);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Moves the control to the top or bottom of the parent control's (or screen's) list of TWinControl controls.

Use SetZOrder to rearrange overlapping controls within a parent control or (if the control has no parent) overlapping windows on the screen. If the TopMost parameter is true, the control becomes the top control; otherwise, it becomes the bottom control.

TWinControl controls always stack on top of other controls, regardless of the Z order.

After changing the order, SetZOrder invalidates the control to ensure repainting to reflect the new order.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance