Millisecond Forums

How to show range values of a slider element?

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

By SpoHo - 6/10/2014

Hi!

I want to show the values of the slider element constantly, and not only in a tooltip.
I looked at the manual, and thought /showticks = true would helpt, but it doesn't.

Do you guys have a quick solution for that?
My code is: 


<slider test>
/ caption="Public Viewing"
/ labels=("weak", "strong")
/ range = (-3, 3)
/ slidersize = (50%,15%)
/ increment = 1
/ showticks = true
</slider>
By Dave - 6/10/2014

No, that's not what /showticks is supposed to do (compare setting it to true vs false and observe the difference). You need to use the /labels attribute as in:

<slider test>
/ caption="Public Viewing"
/ labels=("weak~n-3","~n-2", "~n-1", "~n0", "~n+1", "~n+2" "strong~n+3")
/ range = (-3, 3)
/ slidersize = (50%,15%)
/ increment = 1
/ showticks = true
</slider>