Jump to content

Component: Radio Button ( Control)

From Flowcode Help
Revision as of 14:35, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder"")
Author MatrixTSL
Version 1.3
Category Control


Radio Button component

Creates a radio button item that can be grouped with other radio buttons to create a user selectable input.

Version information

Library Version, Component Version, Date, Author, Info
2, 1.1, 14-06-24, ST, Corrected the id tag of the html element
3, 1.2, 20-04-26, ST, Resizing no longer distorts the circle
4, 1.3, 16-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 use some basic controls in a Web Developer project.

BasicControls.fcweb

The web app created by this example can be viewed here: BasicControls Example

Macro reference

GetState

GetState
Returns true if this radio button is currently selected 
- BOOL Return


SetState

SetState
Sets this radio button to be selected or unselected 
- BOOL bState
The state to set this radio button to 
- VOID Return


Property reference

Properties
Radio Button
Checked
The default state of the radio button 
Text
The caption text 
Group Name
Set the group name (radio buttons with the same group name will be mutually exclusive) 
OnClick Macro
The macro to call when the user clicks this radio button 
Style
Font
Specifies the font style for the item 
Font Size
The font size in pixels 
Bold
Make the caption text bold 
Italic
Make the caption text italicised 
Underline
Make the caption text underlined 
Strikethrough
Make the caption text crossed-out 
Colour
Text
Specifies the font colour value 
Background
Specifies the background colour value 
Advanced
Custom Attributes
Text here will be added to the html tag of this component to allow advanced customisation 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_WEBEXP_Radio.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Radio.fcsx