Vcl.Forms.TApplication.NormalizeTopMosts

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure NormalizeTopMosts;

C++

void __fastcall NormalizeTopMosts();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

Makes forms that have been designated as topmost forms (their FormStyle is fsStayOnTop) behave as if they were not topmost forms.

Use NormalizeTopMosts to allow a message box or dialog box that is displayed using the Windows API functions (such as MessageBox and MessageDlg) directly, appear on top of a topmost form. Otherwise the topmost form remains on top, and may obscure the message box.

Calling NormalizeTopMosts is not necessary when using functions to display message boxes.

To return the forms designated as fsStayOnTop to be topmost again, call RestoreTopMosts.

See Also

Code Examples