Difference between revisions of "Component: Simulation Switch Template (Controls)"
From Flowcode Help
Jump to navigationJump to search| Line 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 26: | Line 28: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 47: | Line 51: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| Line 60: | Line 64: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" | SwitchState | | width="90%" | SwitchState | ||
|- | |- | ||
Revision as of 13:35, 17 November 2021
| Author | Matrix Ltd |
| Version | 1.3 |
| Category | Controls |
Contents
Simulation Switch Template component
A base for building switches that do not download to chip. Mouse interaction can send 'System.User' events with the following data... ID = The handle of the switch component sending the message Message = 1 (on) or 0 (off) Current state can also be read via simulation macros.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| GetState | |
| Read the current state of the switch. Returns BOOL true when the switch is on, or BOOL false when off. | |
| Return | |
| SetState | |
| Sets the current state of the switch. BOOL true when the switch is on, or BOOL false when off. | |
| SwitchState | |
| Sets the state of the switch | |
| Return | |