What is a Slider?
A Slider graphic element is a read/write control that displays numeric values for a tag within the configured range in Runtime. Sliders are used to set a value for a configured write tag by dragging the slider thumb to the desired position in a range. Vertical and Horizontal Slider graphic elements are available in
CommonControls
for desired positioning.
IMPORTANT:
If the Slider value tag is outside the MinValue and MaxValue range, the thumb moves to the closest MinValue or MaxValue. The slider track and thumb then change to the color defined in the
OutofLimitFillColor
property depicting that the value is outside the range.
TIP:
A release event automatically triggers with when these scenarios occur.
- If theVisibleproperty is set to false while the thumb is changing position on the Slider, the Slider then writes the current value of the thumb position to the controller or tag when the release occurs.
- If theEnabledproperty is set to false while the thumb is changing position on the Slider, the Slider then writes the current value of the thumb position to the controller or tag when the release occurs.
- If a graphic element covers a slider while the thumb is changing position, the Slider then writes the current value of the thumb position to the controller or tag when the release occurs.
- If one or both of theXandYproperties are set to invalid values while the thumb is changing position on the Slider, the Slider then writes the current value of the thumb position to the controller or tag when the release occurs.
- If the screen switches while the thumb is changing position on the Slider, the Slider then writes the current value of the thumb position to the controller or tag when the release occurs.
Provide Feedback