fsStayOnTop hides modal dialogs
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
With both Delphi and Lazarus, fsStayOnTop places a form on top of other forms. However, with Delphi any active modal dialogs are placed on top of fsStayOnTop forms, while modal dialogs can be hidden below a fsStayOnTop form with Lazarus.
My code below shows how to reproduce this problem - pressing the speedbutton generates a hidden modal dialog. You can not move the Form to see the modal dialog, as the modal dialog is the active window.
I think Delphi's behavior is appropriate: an active modal window should appear on top of a fsStayOnTop form.
Steps to reproduce:
procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
Showmessage('urgent');
end;
procedure TForm1.FormShow(Sender: TObject);
begin
Form1.FormStyle := fsStayOnTop;
Form1.Position := poScreenCenter;
end;
Mantis conversion info:
- Mantis ID: 2011
- OS: Windows
- OS Build: XP
- Platform: x86
- Version: 0.9.14
- Fixed in version: 0.9.23 (SVN)
- Fixed in revision: 12252 (#1a6c3599)
- Monitored by: » forest (Boguslaw Brandys)
- Target version: 1.0.0
- LazTarget: 1.0