Jump to content

Component: RadioButton (Digital Control ): Difference between revisions

From Flowcode Help
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 72: Line 72:


===Prv_DisplaySelectedItem===
===Prv_DisplaySelectedItem===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Prv_DisplaySelectedItem'''
| width="90%" class="mtx-class-macrohead" | '''Prv_DisplaySelectedItem'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 86: Line 86:


===SetIndex===
===SetIndex===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetIndex'''
| width="90%" class="mtx-class-macrohead" | '''SetIndex'''
|-
|-
| colspan="2" | Sets the selected item. 
| colspan="2" | Sets the selected item. 
Line 105: Line 105:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-

Latest revision as of 14:23, 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.

Logging Example

Macro reference

GetIndex

GetIndex
Gets the current selected index. Returns 1 - NumberOptions 
- BYTE Return


Prv_DisplaySelectedItem

Prv_DisplaySelectedItem
 
- VOID Return


SetIndex

SetIndex
Sets the selected item. 
- BYTE Index
Range: 1 - Number Options 
- VOID Return

Property reference

Properties
Number Options
 
Initial Value
 
Text1
Text to display 
Text2
Text to display 
Text3
Text to display 
Style
 
Colour
 
Show Label
 
Text Colour
 
Text Scale
 
Spacing
Space between radio button items 
Text Spacing
Space between text and radio button item.