Difference between revisions of "Component: Slider control (Controls)"
(XML import) |
(XML import BR) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color: gray;" | Version | ||
− | | 1. | + | | 1.1 (Release) |
|- | |- | ||
| width="20%" style="color: gray;" | Category | | width="20%" style="color: gray;" | Category | ||
Line 16: | Line 16: | ||
==[[File:Component Icon 0d074f2e_5ff6_45d2_a0a8_1b5c3aa34e41.png|Image]] Slider control component== | ==[[File:Component Icon 0d074f2e_5ff6_45d2_a0a8_1b5c3aa34e41.png|Image]] Slider control component== | ||
− | A simple slider control with | + | 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== | ==Examples== | ||
− | + | Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications. | |
− | + | {{Fcfile|Meters.fcfx|Meters}} | |
==Downloadable macro reference== | ==Downloadable macro reference== | ||
Line 30: | Line 32: | ||
===<span style="font-weight: normal;"><u><tt>GetValue</tt></u></span>=== | ===<span style="font-weight: normal;"><u><tt>GetValue</tt></u></span>=== | ||
− | Gets the | + | Gets the current value of the slider. This will be within the range set by the |
+ | |||
+ | SetRange macro. | ||
'''Parameters''' | '''Parameters''' | ||
Line 43: | Line 47: | ||
===<span style="font-weight: normal;"><u><tt>SetValue</tt></u></span>=== | ===<span style="font-weight: normal;"><u><tt>SetValue</tt></u></span>=== | ||
− | + | Set the current value of the slider. This will override any value set by using the mouse. | |
− | |||
− | |||
'''Parameters''' | '''Parameters''' | ||
:[[Variable Types|FLOAT]] ''Value'' | :[[Variable Types|FLOAT]] ''Value'' | ||
+ | ::The value to set. | ||
Line 58: | Line 61: | ||
===<span style="font-weight: normal;"><u><tt>SetInteractive</tt></u></span>=== | ===<span style="font-weight: normal;"><u><tt>SetInteractive</tt></u></span>=== | ||
− | + | Set whether the mouse can be used to change the slider value. | |
− | |||
− | |||
'''Parameters''' | '''Parameters''' | ||
Line 89: | Line 90: | ||
===<span style="font-weight: normal;"><u><tt>ShowScale</tt></u></span>=== | ===<span style="font-weight: normal;"><u><tt>ShowScale</tt></u></span>=== | ||
− | + | Set whether graduated marking are shown along the length of the slider. | |
− | |||
− | |||
'''Parameters''' | '''Parameters''' | ||
Line 105: | Line 104: | ||
===<span style="font-weight: normal;"><u><tt>SetRange</tt></u></span>=== | ===<span style="font-weight: normal;"><u><tt>SetRange</tt></u></span>=== | ||
− | + | Set the minimum and maximum values that can be shown on the slider. | |
'''Parameters''' | '''Parameters''' |
Latest revision as of 15:45, 16 February 2017
Author | Matrix Ltd |
Version | 1.1 (Release) |
Category | Controls |
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