Wrong modal form behavior in windows
Original Reporter info from Mantis: Penilopa P
-
Reporter name: Anton
Original Reporter info from Mantis: Penilopa P
- Reporter name: Anton
Description:
After returning to application with activated modal form this form must be brought to front. In case of LCL ShowModal() it is not so. The example of this is Lazarus IDE.
Steps to reproduce:
- Start Lazarus and create new Application project
- Go to "Options of project" dialog (menu Project|Project options or Shift+Ctrl+F11) - img01.png
- Now you need another application to activate (e.g. FireFox)
- Try to activate Lazarus again by clicking on its main form - img02.png
Unfortunately, Lazaru IDE will not activated, but when we try to activate it by clicking on it in the taskbar, it will.
Additional information:
Index: lcl/include/customform.inc
===================================================================
--- lcl/include/customform.inc (revision 30146)
+++ lcl/include/customform.inc (working copy)
@@ -2672,6 +2672,7 @@
a better way: }
try
WidgetSet.AppProcessMessages; // process all events
+ Show;
except
if Application.CaptureExceptions then
Application.HandleException(Self)
will fix erroneous behavior, but it is not a solution, cause in GTK+ it is not needed. I can not test it in Qt because I don't have it.
Mantis conversion info:
- Mantis ID: 19069
- Version: 0.9.30.1 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 36182 (#0d669139)
- Monitored by: » jixian.yang (yang jixian), » januszt29@interia.pl (Janusz Tomczak)