diff options
author | Felipe Heidrich <fheidric> | 2005-05-19 18:21:57 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2005-05-19 18:21:57 +0000 |
commit | b8816924822b8aa519bd12d199c8c1743f7a3842 (patch) | |
tree | 8efb325c3cbd4f4dd8cd56d27d2ab1ba07d72bc8 | |
parent | 3297aa7dc1ba1797fc46d396564d4cc6426935e8 (diff) | |
download | eclipse.platform.swt-b8816924822b8aa519bd12d199c8c1743f7a3842.tar.gz eclipse.platform.swt-b8816924822b8aa519bd12d199c8c1743f7a3842.tar.xz eclipse.platform.swt-b8816924822b8aa519bd12d199c8c1743f7a3842.zip |
Bug 94065
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java index e7dada117b..9f088b99ab 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java @@ -1216,6 +1216,14 @@ LRESULT wmKillFocus (int hwnd, int wParam, int lParam) { return super.wmKillFocus (hwnd, wParam, lParam); } +LRESULT wmLButtonDown (int hwnd,int wParam,int lParam) { + if (hwnd == hwndUpDown) { + int value = getSelectionText (); + OS.SendMessage (hwndUpDown , OS.IsWinCE ? OS.UDM_SETPOS : OS.UDM_SETPOS32, 0, value); + } + return super.wmLButtonDown (hwnd, wParam, lParam); +} + LRESULT wmScrollChild (int wParam, int lParam) { int code = wParam & 0xFFFF; switch (code) { @@ -1241,7 +1249,7 @@ LRESULT wmNotifyChild(int wParam, int lParam) { if (value > max [0]) value = min [0]; } /* - * The SWT.Modify event is after the widget has been + * The SWT.Modify event is sent after the widget has been * updated with the new state. Rather than allowing * the default updown window proc to set the value * when the user clicks on the updown control, set |