Beranda > Delphi > Message Box on top of “stay on top” forms

Message Box on top of “stay on top” forms

The following code causes “stay on top” forms to allow a MessageBox to appear on top. After the message box is closed, the topmost forms are restored so that they continue to float to the top. ~~~~~~~~~~~~~~~~~~~~~~~~~
with Application do
begin
NormalizeTopMosts;
MessageBox(‘This should be on top.’, ‘Look’, [mbOK]) ;
RestoreTopMosts;
end;

Iklan
Kategori:Delphi
  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: