Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2004-10-06 19:50:20 +0000
committerCarolyn MacLeod2004-10-06 19:50:20 +0000
commit817d7598b1de1d1183a51522696bb85d9d4cef92 (patch)
tree59f33d2d283c6f4a1460ec21dde7aff0516a9819 /examples
parentc1b7df422a886c38d896c5764cc2eb33d65d18c3 (diff)
downloadeclipse.platform.swt-817d7598b1de1d1183a51522696bb85d9d4cef92.tar.gz
eclipse.platform.swt-817d7598b1de1d1183a51522696bb85d9d4cef92.tar.xz
eclipse.platform.swt-817d7598b1de1d1183a51522696bb85d9d4cef92.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java
index 8a8dfcad9c..23f837e37f 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java
@@ -71,11 +71,11 @@ class MenuTab extends Tab {
if (noRadioGroupButton.getSelection()) radioBehavior |= SWT.NO_RADIO_GROUP;
/* Create the shell and menu(s) */
- Shell shell = new Shell (SWT.SHELL_TRIM);
+ Shell shell = new Shell (SWT.SHELL_TRIM | orientation);
shells [shellCount] = shell;
if (barButton.getSelection ()) {
/* Create menu bar. */
- Menu menuBar = new Menu(shell, SWT.BAR | orientation | radioBehavior);
+ Menu menuBar = new Menu(shell, SWT.BAR | radioBehavior);
shell.setMenuBar(menuBar);
hookListeners(menuBar);
@@ -85,7 +85,7 @@ class MenuTab extends Tab {
item.setText(getMenuItemText("Cascade"));
if (imagesButton.getSelection()) item.setImage(instance.images[ControlExample.ciOpenFolder]);
hookListeners(item);
- Menu dropDownMenu = new Menu(shell, SWT.DROP_DOWN | orientation | radioBehavior);
+ Menu dropDownMenu = new Menu(shell, SWT.DROP_DOWN | radioBehavior);
item.setMenu(dropDownMenu);
hookListeners(dropDownMenu);
@@ -96,7 +96,7 @@ class MenuTab extends Tab {
if (popUpButton.getSelection()) {
/* Create pop-up menu. */
- Menu popUpMenu = new Menu(shell, SWT.POP_UP | orientation | radioBehavior);
+ Menu popUpMenu = new Menu(shell, SWT.POP_UP | radioBehavior);
shell.setMenu(popUpMenu);
hookListeners(popUpMenu);
@@ -269,7 +269,7 @@ class MenuTab extends Tab {
item.setText(getMenuItemText("Cascade"));
if (imagesButton.getSelection()) item.setImage(instance.images[ControlExample.ciOpenFolder]);
hookListeners(item);
- Menu subMenu = new Menu(menu);
+ Menu subMenu = new Menu(menu.getShell(), SWT.DROP_DOWN);
item.setMenu(subMenu);
hookListeners(subMenu);

Back to the top