Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 58868 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/swt/examples/controlexample/ControlExample.java (-1 / +1 lines)
Lines 40-46 Link Here
40
	 */
40
	 */
41
	public ControlExample(Composite parent) {
41
	public ControlExample(Composite parent) {
42
		initResources();
42
		initResources();
43
		tabFolder = new TabFolder (parent, SWT.NONE);
43
		tabFolder = new TabFolder (parent, SWT.MULTI);
44
		Tab [] tabs = createTabs();
44
		Tab [] tabs = createTabs();
45
		for (int i=0; i<tabs.length; i++) {
45
		for (int i=0; i<tabs.length; i++) {
46
			TabItem item = new TabItem (tabFolder, SWT.NONE);
46
			TabItem item = new TabItem (tabFolder, SWT.NONE);
(-)src/org/eclipse/swt/examples/controlexample/TabFolderTab.java (-1 / +10 lines)
Lines 22-28 Link Here
22
	Group tabFolderGroup;
22
	Group tabFolderGroup;
23
	
23
	
24
	/* Style widgets added to the "Style" group */
24
	/* Style widgets added to the "Style" group */
25
	Button topButton, bottomButton;
25
	Button topButton, bottomButton, singleButton, multiButton;
26
26
27
	static String [] TabItems1 = {ControlExample.getResourceString("TabItem1_0"),
27
	static String [] TabItems1 = {ControlExample.getResourceString("TabItem1_0"),
28
								  ControlExample.getResourceString("TabItem1_1"),
28
								  ControlExample.getResourceString("TabItem1_1"),
Lines 57-62 Link Here
57
		int style = getDefaultStyle();
57
		int style = getDefaultStyle();
58
		if (topButton.getSelection ()) style |= SWT.TOP;
58
		if (topButton.getSelection ()) style |= SWT.TOP;
59
		if (bottomButton.getSelection ()) style |= SWT.BOTTOM;
59
		if (bottomButton.getSelection ()) style |= SWT.BOTTOM;
60
		if (singleButton.getSelection ()) style |= SWT.SINGLE;
61
		if (multiButton.getSelection ()) style |= SWT.MULTI;
60
		if (borderButton.getSelection ()) style |= SWT.BORDER;
62
		if (borderButton.getSelection ()) style |= SWT.BORDER;
61
63
62
		/* Create the example widgets */
64
		/* Create the example widgets */
Lines 82-87 Link Here
82
		topButton.setSelection(true);
84
		topButton.setSelection(true);
83
		bottomButton = new Button (styleGroup, SWT.RADIO);
85
		bottomButton = new Button (styleGroup, SWT.RADIO);
84
		bottomButton.setText ("SWT.BOTTOM");
86
		bottomButton.setText ("SWT.BOTTOM");
87
		singleButton = new Button (styleGroup, SWT.RADIO);
88
		singleButton.setText ("SWT.SINGLE");
89
		singleButton.setSelection(true);
90
		multiButton = new Button (styleGroup, SWT.RADIO);
91
		multiButton.setText ("SWT.MULTI");
85
		borderButton = new Button (styleGroup, SWT.CHECK);
92
		borderButton = new Button (styleGroup, SWT.CHECK);
86
		borderButton.setText ("SWT.BORDER");
93
		borderButton.setText ("SWT.BORDER");
87
	
94
	
Lines 126-131 Link Here
126
		super.setExampleWidgetState ();
133
		super.setExampleWidgetState ();
127
		topButton.setSelection ((tabFolder1.getStyle () & SWT.TOP) != 0);
134
		topButton.setSelection ((tabFolder1.getStyle () & SWT.TOP) != 0);
128
		bottomButton.setSelection ((tabFolder1.getStyle () & SWT.BOTTOM) != 0);
135
		bottomButton.setSelection ((tabFolder1.getStyle () & SWT.BOTTOM) != 0);
136
		singleButton.setSelection ((tabFolder1.getStyle () & SWT.SINGLE) != 0);
137
		multiButton.setSelection ((tabFolder1.getStyle () & SWT.MULTI) != 0);
129
		borderButton.setSelection ((tabFolder1.getStyle () & SWT.BORDER) != 0);
138
		borderButton.setSelection ((tabFolder1.getStyle () & SWT.BORDER) != 0);
130
	}
139
	}
131
}
140
}

Return to bug 58868