Hi Greg,
Some of this may be possible with a little extra effort. On the Stepper, the maximum value is not “directly accessible” but, digging a bit deeper, you can reset the maximum value post-creation with this code:
[lua]
newStepper._view._maximumValue = 6
[/lua]
That will change the max value and make the Stepper stop at that value, versus the previous one. However, you may face issues if the Stepper is (for example) previously set at a higher value like 10, then you try to reduce it to 6. In that case, I doubt the Stepper will visually update to reflect that they can’t press in that direction any further.
On Slider, the current position is just based on a percentage of the width of the widget. So, you could probably just manually set the value/position of the slider handle with this:
[lua]
mySlider:setValue( percentage )
[/lua]
And that percentage would be calculated (by you) to be the “new percentage” based on the difference between the new value and the increased value.
Hope this helps,
Brent Sorrentino