Component: Slider control (Advanced Shapes)
Author | Matrix Ltd |
Version | 1.1 (Release) |
Category | Advanced Shapes |
Contents
Slider control component
A simple graphical interface for a vertical meter or slider control. This can be used within custom components to give them a way to display an analogue value, or to allow setting a value by clicking and dragging with the mouse.
Examples
No additional examples
Downloadable macro reference
This component does not contain any downloadable macros
Simulation macro reference
GetValue
Gets the current value of the slider. This will be within the range set by the
SetRange macro.
Parameters
- This macro has no parameters
Return value
SetValue
Set the current value of the slider. This will override any value set by using the mouse.
Parameters
- FLOAT Value
- The value to set.
Return value
- This call does not return a value
SetInteractive
Set whether the mouse can be used to change the slider value.
Parameters
- BOOL Enable
- Set true to allow clicks to set scale
Return value
- This call does not return a value
SetTitle
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
ShowScale
Set whether graduated marking are shown along the length of the slider.
Parameters
- BOOL Show
- True to show scale, else false
Return value
- This call does not return a value
SetRange
Set the minimum and maximum values that can be shown on the slider.
Parameters
- INT Min
- Min (start) value
- INT Max
- Maximum (end) value
Return value
- This call does not return a value
Property reference
This component does not contain any properties