fsStayOnTop non-modal window cannot get active in Qt
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
fsStayOnTop non-modal window cannot get active in Qt
Steps to reproduce:
1.) Show an fsStayOnTop non-modal window.
2.) Switch to a different application with Alt+Tab or mouse.
3.) Switch back to the fsStayOnTop non-modal window with Alt+Tab or mouse. You'll see that the form can't get active/focused.
Additional information:
See the attached screencast and test project. The code is:
procedure TForm1.Button1Click(Sender: TObject);
var
Form2: TForm;
begin
Form2 := TForm.CreateNew(Self);
Form2.Position := poDesigned;
Form2.Left := 0;
Form2.Top := 0;
Form2.FormStyle := fsStayOnTop;
Form2.Show;
end;
Mantis conversion info:
- Mantis ID: 29294
- OS: Kubuntu Linux
- Build: trunk
- Platform: Linux
- Version: 1.7 (SVN)
- Target version: 2.2