summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-04-30 12:16:26 -0400
committerCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-04-30 12:16:26 -0400
commite708e100f8ab1e9d40a025dee6cebdd5da60a939 (patch)
treef22abcf8eb4c9e80e8a069d4f88683efdd0a1d6e
parent7d3ba9344c953b6e6eb5b4547c5c6ab3984aacc7 (diff)
downloadeclipse.platform.swt-e708e100f8ab1e9d40a025dee6cebdd5da60a939.tar.gz
eclipse.platform.swt-e708e100f8ab1e9d40a025dee6cebdd5da60a939.tar.xz
eclipse.platform.swt-e708e100f8ab1e9d40a025dee6cebdd5da60a939.zip
Bug 375723 - Handle MENU_KEYBOARD in more widgets
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index 02f0f3495f..3fe07bcd19 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2386,6 +2386,12 @@ int untranslateOffset (int offset) {
return offset;
}
+void updateMenuLocation (Event event) {
+ Point point = display.map (this, null, getCaretLocation ());
+ event.x = point.x;
+ event.y = point.y + getLineHeight ();
+}
+
void updateOrientation (){
int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
if ((style & SWT.RIGHT_TO_LEFT) != 0) {