<< Click to Display Table of Contents >> Navigation: Object Reference > Palette Objects > Slider |
The slider object displays a numerical value on a linear scale, similar to a linear bargraph. The handle can be used to change the value by sliding it left and right / down and up.
Additionally, certain behavior can be configured to change the value by pressing a position on the scale.
The slider shares a lot of common properties with other objects. See here for a description. Here only the slider specific properties are described.
A slider can either be vertical or horizontal. Depending on this property the drawing of the slider itself and the value changes accordingly.
Default value: Horizontal
Possible values: Vertical or Horizontal
As the name of this property implies, the number of the ticks that shall be drawn if Ticks are enabled through the Tick Position property, can be configured with this property.
The ticks are evenly positioned along the length of the slide.
Default value: 5
Possible values: 0 ... 32767
Define the width of the ticks that shall be drawn with this property. Only has an effect if Ticks are enabled through the Tick Position property.
Default value: black (0, 0, 0)
Possible values: any 24Bit RGB color
Define the position of the ticks. This property also acts as an enable for the drawing of ticks.
Default value: Ticks Off (no ticks)
Possible values:
Ticks Off (no ticks)
Bottom/Right (ticks on the bottom for horizontal, on the right for vertical sliders)
Top/Left (ticks on the top for horizontal, on the left for vertical sliders)
Both ((ticks on the top and bottom for horizontal, on the left and right for vertical sliders)
Define the color of the ticks that shall be drawn with this property. Only has an effect if Draw Ticks is enabled.
Default value: dark gray (102,102,102,255)
Possible values: any 24Bit RGB color
When enabled, the value of the slider will be set to the nearest tick value after the user has set a value.
Default value: Disabled
Possible values: Disabled or Enabled
The width of the slider handle in px.
Default value: 30
Possible values: 0 .. object width
Note that a value of 0 results in the handle not being drawn.
The height of the slider handle in px.
Default value: 30
Possible values: 0 .. object height
Note that a value of 0 results in the handle not being drawn.
Define the color of the handle that shall be drawn with this property.
Default value: dark gray (102,102,102,255)
Possible values: any 24Bit RGB color
A image can be set for the handle. It will be moved at the horizontal or vertical axis of the slider according to it's value.
Please note that there is a little different behavior for SVG images. If an SVG image shall be used as needle, it needs to have the same size as the bargraph and the needle has to be placed directly in the middle of the needle SVG image. The preview in the design tool will also be different to the look at runtime.
Default value: No image
Possible image: Any image from file system
When enabled, the slide of the slider will be drawn.
Default value: Enabled
Possible values: Disabled or Enabled
Define the color of the unfilled section of the slide (i.e. the part above the value that the object currently shows.
Default value: white (255,255,255,255)
Possible values: any 24Bit RGB color
The width of the slider slide in px.
Default value: 8
Possible values: 0 .. object height / width (depending on the axis orientation of the slider)
Note that a value of 0 results in the handle not being drawn.
This property defines what should happen if the user taps on the slider
Default value: Off
Possible values:
Off (nothing happens)
Handle/value is incremented/decremented by tick distance
Handle jumps to clicked value (this is influenced by Snap To Tick property, with that enabled the slider will be set to the nearest tick value.