summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-28 10:32:59 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-28 10:32:59 +0000
commit1196a73c40a0e21b16107486172cc072a76143e2 (patch)
tree05883655481f1747733109a429e7e5f3e6081cea /src
parent249483f9e124d31f5cf460185c640fd4d2427c51 (diff)
downloadfpGUI-1196a73c40a0e21b16107486172cc072a76143e2.tar.xz
* GDI: Fixed the double click issue under Windows.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/gdi/gfx_gdi.pas8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/gdi/gfx_gdi.pas b/src/corelib/gdi/gfx_gdi.pas
index a4cd2308..6b9d274e 100644
--- a/src/corelib/gdi/gfx_gdi.pas
+++ b/src/corelib/gdi/gfx_gdi.pas
@@ -524,14 +524,16 @@ begin
else
Windows.DefWindowProc(hwnd, uMsg, wParam, lParam);
end;
-
+(*
WM_LBUTTONDBLCLK:
begin
{$IFDEF DEBUG}
writeln('fpGFX/GDI:', w.ClassName + ': MouseButton DoubleClick event');
{$ENDIF}
end;
+*)
+ WM_LBUTTONDBLCLK,
WM_MOUSEMOVE,
WM_LBUTTONDOWN,
WM_LBUTTONUP,
@@ -590,7 +592,8 @@ begin
case uMsg of
WM_MOUSEMOVE:
mcode := FPGM_MOUSEMOVE;
-
+
+ WM_LBUTTONDBLCLK,
WM_LBUTTONDOWN,
WM_MBUTTONDOWN,
WM_RBUTTONDOWN:
@@ -633,6 +636,7 @@ begin
msgp.mouse.Buttons := i;
end;
+ WM_LBUTTONDBLCLK,
WM_LBUTTONDOWN,
WM_LBUTTONUP:
msgp.mouse.Buttons := MOUSE_LEFT;