Is there a way to set step values in a slider or other widget?

Hey all, I’m looking for a way to set a “step” value in a widget.  For example, if my max value is 50, I want to only allow values of 5,10,15,20,25,30,35,40,45,50 to be chosen via the slider.  Is this possible?  

I know I can use the segmentedControl, but it can get quite busy with all of those values displayed.  I would prefer the slider… 

Thanks!

when the slider makes it’s callback to you (ie the user has just released the handle), try rounding event.value to one of your desired increments, and then calling self:setValue() to cause the slider to jump to the correct increment location

Not sure how that will look visually, but it’s worth a try…

Nice idea!  I’ll give it a try!

when the slider makes it’s callback to you (ie the user has just released the handle), try rounding event.value to one of your desired increments, and then calling self:setValue() to cause the slider to jump to the correct increment location

Not sure how that will look visually, but it’s worth a try…

Nice idea!  I’ll give it a try!