Creates a checkbox control with a label.
Takes text (String), x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
textString
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a checkbox control with a label.
Takes text (String), x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a checkbox control that can be checked or unchecked. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using CreateWindow with "BUTTON" class and BS_AUTOCHECKBOX style (automatically toggles on click). Sets GUI font. Creates CGizmo with GIZMO_BUTTON type, checkable=true. Stores text label, position, dimensions, state (visible=true, enabled=true, IsChecked=false). Returns gizmo ID on success, 0 if parent not found.
Creates a checkbox control that can be checked or unchecked. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using CreateWindow with "BUTTON" class and BS_AUTOCHECKBOX style (automatically toggles on click). Sets GUI font. Creates CGizmo with GIZMO_BUTTON type, checkable=true. Stores text label, position, dimensions, state (visible=true, enabled=true, IsChecked=false). Returns gizmo ID on success, 0 if parent not found.
Checkboxes toggle between checked and unchecked when clicked. Use bgiSetGizmoChecked to programmatically set state. Use bgiIsGizmoChecked to query state. Generates BGI_EVENT_COMMAND_CLICK events. The checkbox label appears to the right of the checkbox. Checkboxes are independent - multiple can be checked simultaneously (unlike radio buttons).