diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-05-23 12:20:23 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-07-31 09:54:03 +0100 |
commit | b74b9e8451081eba5877aded54f2986979cbafcc (patch) | |
tree | 5a7504f53f7928c1fd5c7db3c1f00a87eb902a2a | |
parent | 7124b1005235ce2b3565376dafa2022df04f1b58 (diff) | |
download | fpGUI-b74b9e8451081eba5877aded54f2986979cbafcc.tar.xz |
Windows GDI BringToFront() behaviour is now consistent with Linux X11
The window is brought to the front, but not activated.
-rw-r--r-- | src/corelib/gdi/fpg_gdi.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 59c9731c..2bbdd389 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -2058,7 +2058,10 @@ end; procedure TfpgGDIWindow.BringToFront; begin if HasHandle then - BringWindowToTop(FWinHandle); + Windows.SetWindowPos( + WinHandle, HWND_TOP, + FLeft, FTop, FWidth, FHeight, + SWP_NOACTIVATE or SWP_NOSIZE); end; function TfpgGDIWindow.HandleIsValid: boolean; |