Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-11-22 16:30:50 +0000
committerVeronika Irvine2004-11-22 16:30:50 +0000
commita3f2e2ebf84d7818beaebf05c754bcffe82998f0 (patch)
tree80fc9ab679b65444a61df012bda16ce6f2e2cf48 /examples
parent0315f443c6c9199dbee2d288d579f1bbd6b18b61 (diff)
downloadeclipse.platform.swt-a3f2e2ebf84d7818beaebf05c754bcffe82998f0.tar.gz
eclipse.platform.swt-a3f2e2ebf84d7818beaebf05c754bcffe82998f0.tar.xz
eclipse.platform.swt-a3f2e2ebf84d7818beaebf05c754bcffe82998f0.zip
add SMOOTH style
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java
index 3448978e93..f20ae1eab6 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java
@@ -24,7 +24,7 @@ class SashFormTab extends Tab {
Text text;
/* Style widgets added to the "Style" group */
- Button horizontalButton, verticalButton;
+ Button horizontalButton, verticalButton, smoothButton;
static String [] ListData0 = {ControlExample.getResourceString("ListData0_0"), //$NON-NLS-1$
ControlExample.getResourceString("ListData0_1"), //$NON-NLS-1$
@@ -85,6 +85,7 @@ class SashFormTab extends Tab {
int style = getDefaultStyle();
if (horizontalButton.getSelection ()) style |= SWT.H_SCROLL;
if (verticalButton.getSelection ()) style |= SWT.V_SCROLL;
+ if (smoothButton.getSelection ()) style |= SWT.SMOOTH;
/* Create the example widgets */
form = new SashForm (sashFormGroup, style);
@@ -104,11 +105,14 @@ class SashFormTab extends Tab {
/* Create the extra widgets */
horizontalButton = new Button (styleGroup, SWT.RADIO);
- horizontalButton.setText ("SWT.H_SCROLL");
+ horizontalButton.setText ("SWT.HORIZONTAL");
horizontalButton.setSelection(true);
verticalButton = new Button (styleGroup, SWT.RADIO);
- verticalButton.setText ("SWT.V_SCROLL");
+ verticalButton.setText ("SWT.VERTICAL");
verticalButton.setSelection(false);
+ smoothButton = new Button (styleGroup, SWT.CHECK);
+ smoothButton.setText ("SWT.SMOOTH");
+ smoothButton.setSelection(false);
}
/**
@@ -132,5 +136,6 @@ class SashFormTab extends Tab {
super.setExampleWidgetState ();
horizontalButton.setSelection ((form.getStyle () & SWT.H_SCROLL) != 0);
verticalButton.setSelection ((form.getStyle () & SWT.V_SCROLL) != 0);
+ smoothButton.setSelection ((form.getStyle () & SWT.SMOOTH) != 0);
}
}

Back to the top