slider
A DCL slider is a child tile that shows a horizontal or vertical
line segment and a marker that can shift along the displayed line.
It represents an interval with a current position. The current
position can be changed by dragging the marker, by clicking the
displayed line, by clicking arrow buttons at both ends of the
displayed line, by using the cursor keys or by using page-down or
page-up.
related attributes
- These attributes are predefined for a slider only:
-
- max_value
- The largest integer value that can
appear in the interval. It corresponds with the rightmost position
in a horizontal slider or with the topmost position in a vertical
slider. The default max_value is 1000.
- min_value
- The smallest integer value that can
appear in the interval. It corresponds with the leftmost position
in a horizontal slider or with the bottom position in a vertical
slider. The default min_value is 0.
- small_increment
- The number of units the scrollbar will
be changed when using the arrow keys, while dragging the marker or
when clicking the arrow buttons at both ends of the displayed line.
The default is one hundredth of the size of the interval.
- big_increment
- The number of units the scrollbar will
move up/down when using page up/down, or when clicking the
displayed line. The default is one tenth of the size of the
interval.
- This attribute is predefined for a cluster or slider only:
-
- layout
- This attribute controls the
orientation of the slider. It can have one of two values: vertical
or horizontal. The default orientation of a slider is
horizontal.
- These attributes are predefined for every child tile and
consequently for a slider as well:
-
- These attributes are predefined for every tile and consequently
for a slider as well:
-
- key
- value
- The value of a slider refers to its
current position.
- tooltip
- label
- Use the label attribute to display a
label in front of a horizontal slider or above a vertical
slider.
- fixed_height
- fixed_width
- alignment
- width
- bcad_width
- height
- bcad_height
- is_enabled
callbacks
- A callback with reason CBR_SELECT is triggered when the
position of the slider changes.