Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-08-17 21:00:06 +0000
committerFelipe Heidrich2007-08-17 21:00:06 +0000
commita8a9221e8f413cefe56a73b5e268305660fab106 (patch)
tree8345765408561c8e6a4657bcad64e7a238523475
parent589e4d41f659508ea312034fc0f2d5c0726c9ff4 (diff)
downloadeclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.tar.gz
eclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.tar.xz
eclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.zip
right-to-left tool tips
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
index 0953b537cc..71bb6d0102 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
@@ -580,6 +580,11 @@ void createToolTip (ToolTip toolTip) {
lpti.hwnd = handle;
lpti.uId = toolTip.id;
lpti.uFlags = OS.TTF_TRACK;
+ if ((toolTip.getStyle () & SWT.RIGHT_TO_LEFT) != 0) {
+ lpti.uFlags |= OS.TTF_RTLREADING;
+ } else {
+ lpti.uFlags &= ~OS.TTF_RTLREADING;
+ }
lpti.lpszText = OS.LPSTR_TEXTCALLBACK;
OS.SendMessage (toolTip.hwndToolTip (), OS.TTM_ADDTOOL, 0, lpti);
}

Back to the top