Component: Slider control (Advanced Shapes): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 88: | Line 88: | ||
===GetValue=== | ===GetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetValue''' | ||
|- | |- | ||
| colspan="2" | Gets the current value of the slider. This will be within the range set by the SetRange macro. | | colspan="2" | Gets the current value of the slider. This will be within the range set by the SetRange macro. | ||
| Line 102: | Line 102: | ||
===SetInteractive=== | ===SetInteractive=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetInteractive''' | ||
|- | |- | ||
| colspan="2" | Set whether the mouse can be used to change the slider value. | | colspan="2" | Set whether the mouse can be used to change the slider value. | ||
| Line 121: | Line 121: | ||
===SetRange=== | ===SetRange=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetRange''' | ||
|- | |- | ||
| colspan="2" | Set the minimum and maximum values that can be shown on the slider. | | colspan="2" | Set the minimum and maximum values that can be shown on the slider. | ||
| Line 145: | Line 145: | ||
===SetValue=== | ===SetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetValue''' | ||
|- | |- | ||
| colspan="2" | Set the current value of the slider. This will override any value set by using the mouse. | | colspan="2" | Set the current value of the slider. This will override any value set by using the mouse. | ||
| Line 164: | Line 164: | ||
===ShowScale=== | ===ShowScale=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ShowScale''' | ||
|- | |- | ||
| colspan="2" | Set whether graduated marking are shown along the length of the slider. | | colspan="2" | Set whether graduated marking are shown along the length of the slider. | ||
| Line 184: | Line 184: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| 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 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 | |
SetInteractive
| SetInteractive | |
| Set whether the mouse can be used to change the slider value. | |
| Enable | |
| Set true to allow clicks to set scale | |
| 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 | |
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 | |
ShowScale
| ShowScale | |
| Set whether graduated marking are shown along the length of the slider. | |
| Show | |
| True to show scale, else false | |
| Return | |
Property reference
| Properties |