Stepper and slider

Apologies in advance if this is in the documentation somewhere, but I have searched, and on the forumsss.

I want to temporarily disable steppers and sliders. Can this be done and if so how?

thanks in advance

Martin

Those widgets don’t support a way to make them inactive.  Please go to:

http://feedback.coronalabs.com

and file a feature request there.   Thanks!  Rob.

Ok. Holiday challenge… I looked at widget_button to see how obj:setEnabled() is implemented and copied it over to widget_stepper. Monkey see monkey do! Now widget_stepper has obj:setEnabled(). Get the attached file, rename it from .txt to .lua and override the internal widget version and you’re all set. Next… slider widget to be fitted with setEnabled(). Ho ho ho… 

And here goes widget_slider.lua. Download attached text file and rename to .lua. It now has a public

obj:setEnabled() method

I should also mention both the stepper and slider widgets now have an 

isEnabled = true / false,

which you can set at creation time.

All the best!!!

Those widgets don’t support a way to make them inactive.  Please go to:

http://feedback.coronalabs.com

and file a feature request there.   Thanks!  Rob.

Ok. Holiday challenge… I looked at widget_button to see how obj:setEnabled() is implemented and copied it over to widget_stepper. Monkey see monkey do! Now widget_stepper has obj:setEnabled(). Get the attached file, rename it from .txt to .lua and override the internal widget version and you’re all set. Next… slider widget to be fitted with setEnabled(). Ho ho ho… 

And here goes widget_slider.lua. Download attached text file and rename to .lua. It now has a public

obj:setEnabled() method

I should also mention both the stepper and slider widgets now have an 

isEnabled = true / false,

which you can set at creation time.

All the best!!!