Jump to content

Component: Slider control (Advanced Shapes): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 15: Line 15:
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.  
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 Pack==
==Component Source Code==


MODELS
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_slider.fcfx FC_Comp_Source_slider.fcfx]


==Detailed description==
==Detailed description==




Line 32: Line 34:


==Examples==
==Examples==




Line 145: Line 149:
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
|-
|-
|}
|}

Revision as of 17:54, 9 November 2022

Author Matrix Ltd
Version 1.1
Category Advanced Shapes


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 for the component source code: 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

Downloadable macro reference

GetValue
Gets the current value of the slider. This will be within the range set by the SetRange macro. 
- FLOAT Return


SetValue
Set the current value of the slider. This will override any value set by using the mouse. 
- FLOAT Value
The value to set. 
- VOID Return


SetInteractive
Set whether the mouse can be used to change the slider value. 
- BOOL Enable
Set true to allow clicks to set scale 
- VOID Return


ShowScale
Set whether graduated marking are shown along the length of the slider. 
- BOOL Show
True to show scale, else false 
- VOID Return


SetRange
Set the minimum and maximum values that can be shown on the slider. 
- INT Min
Min (start) value 
- INT Max
Maximum (end) value 
- VOID Return



Property reference

Properties