Difference between revisions of "Component: Slider control (Advanced Shapes)"
(XML import - Pre 8.0 release) |
|||
Line 23: | Line 23: | ||
==Examples== | ==Examples== | ||
Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications. | Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications. | ||
− | |||
{{Fcfile|Meters.fcfx|Meters}} | {{Fcfile|Meters.fcfx|Meters}} | ||
− | |||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 14:50, 22 May 2018
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
Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications.
Meters
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