Difference between revisions of "Component: Slider control (Advanced Shapes)"
From Flowcode Help
Jump to navigationJump to searchLine 74: | Line 74: | ||
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}} | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===GetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 92: | Line 95: | ||
+ | ===SetValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 110: | Line 114: | ||
+ | ===SetInteractive=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 128: | Line 133: | ||
+ | ===ShowScale=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 146: | Line 152: | ||
+ | ===SetRange=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | Matrix Ltd |
Version | 1.1 |
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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_slider.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_slider.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to use the simulation slider component as a meter display for use in monitoring type applications.
Meters
Macro reference
GetValue
![]() |
GetValue |
Gets the current value of the slider. This will be within the range set by the SetRange macro. | |
![]() |
Return |
SetValue
![]() |
SetValue |
Set the current value of the slider. This will override any value set by using the mouse. | |
![]() |
Value |
The value to set. | |
![]() |
Return |
SetInteractive
![]() |
SetInteractive |
Set whether the mouse can be used to change the slider value. | |
![]() |
Enable |
Set true to allow clicks to set scale | |
![]() |
Return |
ShowScale
![]() |
ShowScale |
Set whether graduated marking are shown along the length of the slider. | |
![]() |
Show |
True to show scale, else false | |
![]() |
Return |
SetRange
![]() |
SetRange |
Set the minimum and maximum values that can be shown on the slider. | |
![]() |
Min |
Min (start) value | |
![]() |
Max |
Maximum (end) value | |
![]() |
Return |
Property reference
![]() |
Properties |