Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2004-09-13 18:51:00 +0000
committerSilenio Quarti2004-09-13 18:51:00 +0000
commitd9d0c775ac1af535d7dcaa2087da6ddf830d1734 (patch)
tree49c0bbbd083f10b1ff0afbeaa651d56920d7c99e /bundles
parent14dfa1641cebdc8414b16479d7eea6d9b4bad7d8 (diff)
downloadeclipse.platform.swt-d9d0c775ac1af535d7dcaa2087da6ddf830d1734.tar.gz
eclipse.platform.swt-d9d0c775ac1af535d7dcaa2087da6ddf830d1734.tar.xz
eclipse.platform.swt-d9d0c775ac1af535d7dcaa2087da6ddf830d1734.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scale.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scale.java
index 630344e810..1a11e4aa1a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scale.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Scale.java
@@ -136,6 +136,9 @@ void createHandle () {
OS.CreateSliderControl (window, null, 0, 0, 100, OS.kControlSliderDoesNotPoint, (short)0, true, actionProc, outControl);
if (outControl [0] == 0) error (SWT.ERROR_NO_HANDLES);
handle = outControl [0];
+ if ((style & SWT.VERTICAL) != 0) {
+ OS.SetControl32BitValue (handle, 100);
+ }
}
/**
@@ -218,7 +221,7 @@ public int getSelection () {
if ((style & SWT.VERTICAL) != 0) {
int minimum = OS.GetControl32BitMinimum (handle);
int maximum = OS.GetControl32BitMaximum (handle);
- value = value - minimum + maximum;
+ value = maximum - value + minimum;
}
return value;
}

Back to the top