diff options
author | Felipe Heidrich | 2007-08-17 21:00:06 +0000 |
---|---|---|
committer | Felipe Heidrich | 2007-08-17 21:00:06 +0000 |
commit | a8a9221e8f413cefe56a73b5e268305660fab106 (patch) | |
tree | 8345765408561c8e6a4657bcad64e7a238523475 | |
parent | 589e4d41f659508ea312034fc0f2d5c0726c9ff4 (diff) | |
download | eclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.tar.gz eclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.tar.xz eclipse.platform.swt-a8a9221e8f413cefe56a73b5e268305660fab106.zip |
right-to-left tool tips
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java | 5 |
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); } |