Component: RadioButton (Digital Control ): Difference between revisions
Appearance
| Line 58: | Line 58: | ||
===GetIndex=== | ===GetIndex=== | ||
{| class="wikitable | {| class="wikitable mtx-class-macrotable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" style="align="center" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetIndex''' | ||
|- | |- | ||
| colspan="2" | Gets the current selected index. Returns 1 - NumberOptions | | colspan="2" | Gets the current selected index. Returns 1 - NumberOptions | ||
| Line 102: | Line 102: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
Revision as of 12:05, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Digital Control |
RadioButton component
A simple radio button component allowing an array of up to 20 on/off type settings.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RadioButton.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_RadioButton.fcsx
Detailed description
No detailed description exists yet for this component
Examples
A basic example using two circular knobs to simulate data e.g., temperature. Both xy chart and Console, log the data. A radio button is used to start, stop and reset logging.
Macro reference
GetIndex
| GetIndex | |
| Gets the current selected index. Returns 1 - NumberOptions | |
| Return | |
Prv_DisplaySelectedItem
| Prv_DisplaySelectedItem | |
| Return | |
SetIndex
| SetIndex | |
| Sets the selected item. | |
| Index | |
| Range: 1 - Number Options | |
| Return | |