Millisecond Forums

"Increment" Syntax in Slider

https://forums.millisecond.com/Topic16273.aspx

By Nakayama Yao - 5/12/2015

To whom it may concern,
Hi, I just want to use slider (ranging from 1 to 10) to display decimals so that it can show, e.g., 1.1 to participants. But when I tried to change the value of increment, it didn't work. Do you have any suggestions?
Thank you for your consideration! 

<slider response>
/ caption="How many times does the second interval last longer than the first one?"
/ labels=("0", "10")
/responsefontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/ range = (0, 10)
/ increment = 0.1
/showticks = true
/slidersize = (70%, 20%)
/position = (10%, 50%)
/defaultresponse = 0
</slider>
By Dave - 5/12/2015

You can only use integers as increment. The closest you can get to what you want with a slider is doing something along the lines of:

<slider response>
/ caption="How many times does the second interval last longer than the first one?"
/ labels=("0.0", "0.5", "1.0", "1.5", "2.0", "2.5", "3.0", "3.5", "4.0", "4.5", "5.0", "5.5", "6.0", "6.5", "7.0", "7.5", "8.0", "8.5", "9.0", "9.5", "10.0")
/responsefontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/ range = (0, 100)
/ increment = 1
/ showticks = true
/ showtooltips = false
/slidersize = (70%, 20%)
/position = (10%, 50%)
/defaultresponse = 0
</slider>
By Nakayama Yao - 5/13/2015

Thank you Sir. It's been very helpful.