Name
Slider.Format -- customize slider text
Function
A template string to describe the format of the slider display. Whenever Slider.mui thinks it's time to render a new value, it doesn't simply write it to a string but uses the format mask specified in this attribute to compose the new string that is then rendered to the slider display. Any "%ld" in the format string is replaced by the current slider level.

Note well: The maximum length of the result string for Slider.Format is limited to 32 characters. If you need more, you must use Slider.Stringify.

Slider.Format defaults to "%ld".

The string you specify here can use text formatting codes. See Text formatting codes for details.

Type
String

Applicability
ISG

Example
mui.Set(obj, "Format", "Custom text: %ld")
The code above sets the slider text to "Custom text" followed by the current slider level.

Show TOC