Creates a radio button within a radio group.
Takes text (String), x (Int), y (Int), width (Int), height (Int), and parentID (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
textString
xInt
yInt
widthInt
heightInt
parentIDInt
Returns
Int
Quick Summary
Creates a radio button within a radio group.
Takes text (String), x (Int), y (Int), width (Int), height (Int), and parentID (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a radio button control for mutually exclusive selection. Searches gizmoMap for parent (must be a GIZMO_GROUP radio group, not a window). Handles scroll panels. Auto-increments gizmoIDCount. Creates using "BUTTON" class with BS_AUTORADIOBUTTON style. Sets GUI font. Creates CGizmo with GIZMO_BUTTON type, checkable=true, stores parent group ID. Returns gizmo ID on success, 0 if parent not found.
Radio buttons within the same group are mutually exclusive - only one can be selected at a time.
Creates a radio button control for mutually exclusive selection. Searches gizmoMap for parent (must be a GIZMO_GROUP radio group, not a window). Handles scroll panels. Auto-increments gizmoIDCount. Creates using "BUTTON" class with BS_AUTORADIOBUTTON style. Sets GUI font. Creates CGizmo with GIZMO_BUTTON type, checkable=true, stores parent group ID. Returns gizmo ID on success, 0 if parent not found.
Radio buttons within the same group are mutually exclusive - only one can be selected at a time. Windows automatically unchecks other radio buttons in the group when one is selected. Use bgiCreateGizmoRadioGroup first to create the container group. Use bgiGetGroupGizmoChecked to determine which radio button is selected in a group. Generates BGI_EVENT_COMMAND_CLICK when selected.