diff options
author | Steve Northover <steve> | 2002-01-04 19:36:01 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2002-01-04 19:36:01 +0000 |
commit | 9cac4987790f69e03a7f45c21f08eb7aeeafd5da (patch) | |
tree | d9edcfa5c563222f3819d5f94d6908190c028e97 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java | |
parent | f43aa976418b32d9a459ee5ddaf50e431be886e8 (diff) | |
download | eclipse.platform.swt-9cac4987790f69e03a7f45c21f08eb7aeeafd5da.tar.gz eclipse.platform.swt-9cac4987790f69e03a7f45c21f08eb7aeeafd5da.tar.xz eclipse.platform.swt-9cac4987790f69e03a7f45c21f08eb7aeeafd5da.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java index 2127f2a887..f802f1979b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java @@ -100,6 +100,11 @@ int callWindowProc (int msg, int wParam, int lParam) { static int checkStyle (int style) {
/*
+ * On Windows, only flat tool bars can be traversed.
+ */
+ if ((style & SWT.FLAT) == 0) style |= SWT.NO_FOCUS;
+
+ /*
* A vertical tool bar cannot wrap because TB_SETROWS
* fails when the toobar has TBSTYLE_WRAPABLE.
*/
@@ -606,15 +611,6 @@ void setImageList (ImageList imageList) { OS.SendMessage (handle, OS.TB_SETIMAGELIST, 0, hImageList);
}
-boolean setTabGroupFocus () {
- return setTabItemFocus();
-}
-
-boolean setTabItemFocus () {
- if (!isShowing ()) return false;
- return forceFocus ();
-}
-
int toolTipHandle () {
return OS.SendMessage (handle, OS.TB_GETTOOLTIPS, 0, 0);
}
|