{
double pdblStep[2];
double* pdblStackVal = stk(stackPointer);
+ double maxValue = 0;
+ double* pdblMaxValue = &maxValue;
+ double minValue = 0;
+ double* pdblMinValue = &minValue;
+
+ getGraphicObjectProperty(sciObjUID, __GO_UI_MIN__, jni_double, (void**) &pdblMinValue);
+ getGraphicObjectProperty(sciObjUID, __GO_UI_MAX__, jni_double, (void**) &pdblMaxValue);
pdblStep[0] = pdblStackVal[0];
- pdblStep[1] = 0.1;// default big value : 10%
+ pdblStep[1] = 0.1 * (maxValue - minValue);// default big value : 10% of the scale
status = setGraphicObjectProperty(sciObjUID, __GO_UI_SLIDERSTEP__, pdblStep, jni_double_vector, 2);
}