Difference between revisions of "Component: Slider control (Controls)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  
 
{| width="50%"
 
{| width="50%"
Line 7: Line 6:
 
|-
 
|-
 
| width="20%" style="color: gray;" | Version
 
| width="20%" style="color: gray;" | Version
| 1.0
+
| 1.1 (Release)
 
|-
 
|-
 
| width="20%" style="color: gray;" | Category
 
| width="20%" style="color: gray;" | Category
Line 16: Line 15:
  
 
==[[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 divides and interaction
+
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.
  
  
Line 30: Line 31:
  
 
===<span style="font-weight: normal;"><u><tt>GetValue</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>GetValue</tt></u></span>===
Gets the bar graphs value
+
Gets the current value of the slider.  This will be within the range set by the
 +
 
 +
SetRange macro.
  
 
'''Parameters'''
 
'''Parameters'''
Line 43: Line 46:
  
 
===<span style="font-weight: normal;"><u><tt>SetValue</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>SetValue</tt></u></span>===
''<span style="color:red;">No additional information</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 60:
  
 
===<span style="font-weight: normal;"><u><tt>SetInteractive</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>SetInteractive</tt></u></span>===
''<span style="color:red;">No additional information</span>''
+
Set whether the mouse can be used to change the slider value.
 
 
 
 
  
 
'''Parameters'''
 
'''Parameters'''
Line 89: Line 89:
  
 
===<span style="font-weight: normal;"><u><tt>ShowScale</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>ShowScale</tt></u></span>===
''<span style="color:red;">No additional information</span>''
+
Set whether graduated marking are shown along the length of the slider.
 
 
 
 
  
 
'''Parameters'''
 
'''Parameters'''
Line 105: Line 103:
  
 
===<span style="font-weight: normal;"><u><tt>SetRange</tt></u></span>===
 
===<span style="font-weight: normal;"><u><tt>SetRange</tt></u></span>===
Sets the range of the graph
+
Set the minimum and maximum values that can be shown on the slider.
  
 
'''Parameters'''
 
'''Parameters'''

Latest revision as of 12:51, 21 July 2016

Author Matrix Ltd
Version 1.1 (Release)
Category Controls


Image 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

FLOAT


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