slider increments

I have a slider with minimum of 0 and max of 100. it’s value is set to 65. I want it to move in increments of 5, but it always moves in increments of 1.
I have PageStep and LineStep both set to 5. How do i get it to move in increments of 5? Couldn’t find anything else in language reference.

PageStep is when user clicks the slider, LineStep is when they use arrow keys while it has focus.
If you DRAG it it doesn’t use either of those…

Set the Max to 20… and take the value and multiply by 5… that will give you 0 to 100 is steps of 5

ok i’ll give that a shot. thanks.

You can also change the value in the ValueChanged event using code like this:

me.value = round(me.value/5) * 5

[quote=404256:@Greg O’Lone]You can also change the value in the ValueChanged event using code like this:

me.value = round(me.value/5) * 5

yeah that makes for a jerky UI… as each time it rounds off, the slider jumps a few pixels