Component: Switch ( Control): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 34: | Line 34: | ||
===GetState=== | ===GetState=== | ||
{| 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" | '''GetState''' | ||
|- | |- | ||
| colspan="2" | Returns the current state of the switch | | colspan="2" | Returns the current state of the switch | ||
| Line 48: | Line 48: | ||
===SetState=== | ===SetState=== | ||
{| 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" | '''SetState''' | ||
|- | |- | ||
| colspan="2" | Sets the current state of the switch | | colspan="2" | Sets the current state of the switch | ||
| Line 68: | Line 68: | ||
==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''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Behaviour | ||
|- | |- | ||
|- | |- | ||
| Line 103: | Line 103: | ||
| colspan="2" | Set true to automatically return the switch to its default state | | colspan="2" | Set true to automatically return the switch to its default state | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Appearance | ||
|- | |- | ||
|- | |- | ||
| Line 142: | Line 142: | ||
| colspan="2" | The outline colour of the switch | | colspan="2" | The outline colour of the switch | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Font | ||
|- | |- | ||
|- | |- | ||
| Line 206: | Line 206: | ||
| colspan="2" | The font colour for the switch when on | | colspan="2" | The font colour for the switch when on | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Advanced | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | MatrixTSL |
| Version | 1.1 |
| Category | Control |
Switch component
Creates an on/off type toggle switch control.
Version information
Library Version, Component Version, Date, Author, Info 2, 1.0, 17-02-25, ST, Changed generated CSS to ensure visible/disabled switch has appropriate features 3, 1.1, 19-02-26, ST, Added to Ev_Initialise to ensure properties are updated when project loads
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetState
| GetState | |
| Returns the current state of the switch | |
| Return | |
SetState
| SetState | |
| Sets the current state of the switch | |
| bState | |
| The state to set (true = on) | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Switch.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Switch.fcsx