summaryrefslogtreecommitdiff
path: root/src/corelib/gdi
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-18 14:33:04 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-18 14:33:04 +0000
commit9bce6c3487c70f7e735a561f9cda4729a070b90d (patch)
treee8bd2edc835429c1496f0686f40e0b714e4f93aa /src/corelib/gdi
parentced6032ce5b612ed878feb5acff423a462a4c997 (diff)
downloadfpGUI-9bce6c3487c70f7e735a561f9cda4729a070b90d.tar.xz
* Minor modification to Actived and Deactivate message distribution under Windows. PopupWindows are now closed at Form Move, Resize and Loosing Focus.
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r--src/corelib/gdi/gfx_gdi.pas18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/corelib/gdi/gfx_gdi.pas b/src/corelib/gdi/gfx_gdi.pas
index 01bf1ded..9ceb9e44 100644
--- a/src/corelib/gdi/gfx_gdi.pas
+++ b/src/corelib/gdi/gfx_gdi.pas
@@ -799,19 +799,18 @@ begin
fpgSendMessage(nil, mw, FPGM_SCROLL, msgp)
end;
end;
-
- WM_ACTIVATE:
+(*
+ WM_ACTIVATE: // We currently use WM_NCACTIVATE instead!
begin
{$IFDEF DEBUG}
- write(w.ClassName + ': ');
- writeln('WM_ACTIVATE');
+ writeln(w.ClassName + ': WM_ACTIVATE');
{$ENDIF}
- if ((wParam and $FFFF) = WA_INACTIVE) then
+ if (Lo(wParam) = WA_INACTIVE) then
fpgSendMessage(nil, w, FPGM_DEACTIVATE)
else
fpgSendMessage(nil, w, FPGM_ACTIVATE);
end;
-
+*)
WM_TIMER:
begin
// writeln('WM_TIMER'); // used for event wait timeout
@@ -821,8 +820,13 @@ begin
WM_NCACTIVATE:
begin
{$IFDEF DEBUG}
- write(w.ClassName + ': WM_NCACTIVATE');
+ writeln(w.ClassName + ': WM_NCACTIVATE');
{$ENDIF}
+ if (Lo(wParam) = WA_INACTIVE) then
+ fpgSendMessage(nil, w, FPGM_DEACTIVATE)
+ else
+ fpgSendMessage(nil, w, FPGM_ACTIVATE);
+
if (PopupListFirst <> nil) and (PopupListFirst.Visible) then
begin
{$IFDEF DEBUG}