bgiCreateCheckbox

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

text String
x Int
y Int
width Int
height Int
parentWin Int

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.

Example

Example.bam
; No example implemented yet