bgiCreateRadioButton

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

text String
x Int
y Int
width Int
height Int
parentID Int

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.

Example

Example.bam
; No example implemented yet