Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.BringToFront

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BringToFront;

C++

void __fastcall BringToFront();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Puts the control in front of all other controls in its parent control.

Call BringToFront to ensure that a form is visible or to reorder overlapping controls within a form.

Note that controls that wrap Windows screen objects (control classes descended from TWinControl) always "stack" above lightweight controls (control classes descended from TGraphicControl). BringToFront can force a lightweight control, such as a Shape, to stack above other lightweight controls, but wrapped controls, such as an Edit, will still stack above the Shape.

Without BringToFront, controls are stacked in the order they were placed on the form.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance