Component: Check Box ( Control): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| 1. | | 1.3 | ||
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Line 20: | Line 20: | ||
2, 1.1, 14-06-24, ST, Corrected the id tag of the html elements | 2, 1.1, 14-06-24, ST, Corrected the id tag of the html elements | ||
3, 1.2, 20-04-26, ST, Resizing no longer distorts the square shape | 3, 1.2, 20-04-26, ST, Resizing no longer distorts the square shape | ||
4, 1.3, 17-06-26, ST, Text is now grey when disabled | |||
| Line 26: | Line 27: | ||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
===BasicControls example=== | |||
This simple example shows how to sue some basic controls in a Web Developer project. | |||
{{Fcfile|BasicControls.fcweb|BasicControls.fcweb}} | |||
The web app created by this example can be viewed here: [https://www.flowcode.co.uk/example/WebComps/BasicControls.html BasicControls Example] | |||
| Line 36: | Line 42: | ||
===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 checkbox (i.e. if it is selected or not) | | colspan="2" | Returns the current state of the checkbox (i.e. if it is selected or not) | ||
| Line 50: | Line 56: | ||
===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 this checkbox | | colspan="2" | Sets the current state of this checkbox | ||
| Line 70: | Line 76: | ||
==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" | Check Box | ||
|- | |- | ||
|- | |- | ||
| Line 95: | Line 101: | ||
| colspan="2" | The macro to call when the user clicks this checkbox | | colspan="2" | The macro to call when the user clicks this checkbox | ||
|- | |- | ||
| 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" | Style | ||
|- | |- | ||
|- | |- | ||
| Line 129: | Line 135: | ||
| colspan="2" | Make the caption text crossed-out | | colspan="2" | Make the caption text crossed-out | ||
|- | |- | ||
| 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" | Colour | ||
|- | |- | ||
|- | |- | ||
| Line 143: | Line 149: | ||
| colspan="2" | Specifies the background colour value | | colspan="2" | Specifies the background colour value | ||
|- | |- | ||
| 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:36, 13 July 2026
| Author | MatrixTSL |
| Version | 1.3 |
| Category | Control |
Check Box component
Creates a checkbox item to allow a user to toggle between on and off.
Version information
Library Version, Component Version, Date, Author, Info 2, 1.1, 14-06-24, ST, Corrected the id tag of the html elements 3, 1.2, 20-04-26, ST, Resizing no longer distorts the square shape 4, 1.3, 17-06-26, ST, Text is now grey when disabled
Detailed description
No detailed description exists yet for this component
Examples
BasicControls example
This simple example shows how to sue some basic controls in a Web Developer project.
The web app created by this example can be viewed here: BasicControls Example
Macro reference
GetState
| GetState | |
| Returns the current state of the checkbox (i.e. if it is selected or not) | |
| Return | |
SetState
| SetState | |
| Sets the current state of this checkbox | |
| bState | |
| The state to set | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_CheckBox.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_CheckBox.fcsx