Slider

A slider lets the user graphically select a value by sliding a knob within a bounded interval, e.g. between 25 and 75.

<slider minimum="25" maximum="75" value="50" orientation="vertical" />

Properties
NameTypeDefaultDescription
orientationchoicehorizontalPossible values are: horizontal, and vertical. The default value, if not set, is horizontal.
minimuminteger0The slider's minimum value. By default, this is 0.
maximuminteger100The slider's maximum value. By default, this is 100.
valueinteger0The value is always between the slider's minimum and maximum values, inclusive. By default, the value equals the minimum.
unitinteger5The distance of the value change when using arrow buttons.
blockinteger25The distance of the value change when using page buttons.
name, enabled, visible, tooltip, property, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component
Listeners
NameDescription
actionInvokes the method when the slider has changed its value.
Keyboard-actions
OperationAction
Left arrow, up arrowDecreases the value (steps in left/top direction) by unit value
Right arrow, down arrowIncreases the value (steps in right/bottom direction) by unit value
Page UpDecreases the value (jumps in left/top direction) by block value
Page DownIncreases the value (jumps in right/bottom direction) by block value
HomeMoves to minimum (left/top) value
EndMoves to maximum (right/bottom) value
Tab, Shift-TabNavigate forward, backward