Creates a dropdown combo box for selecting items.
Takes 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
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a dropdown combo box for selecting items.
Takes 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 combo box (dropdown list) control for selecting from a list of items. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using "COMBOBOX" class with WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_VSCROLL style (dropdown style, user cannot type custom values, vertical scroll in dropdown). Sets GUI font. Creates CGizmo with GIZMO_COMBOBOX type, stores position, dimensions, state (visible=true, enabled=true).
Creates a combo box (dropdown list) control for selecting from a list of items. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using "COMBOBOX" class with WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_VSCROLL style (dropdown style, user cannot type custom values, vertical scroll in dropdown). Sets GUI font. Creates CGizmo with GIZMO_COMBOBOX type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Combo boxes show selected item with a dropdown button. Click to reveal full list. Use bgiAppendGizmoItem to add items. Use bgiGetSelectedGizmoItem to retrieve selected index. Use bgiSetSelectedGizmoItem to programmatically select an item. Generates BGI_EVENT_COMMAND_UPDATE when selection changes (CBN_SELCHANGE). More compact than list boxes - only shows dropdown when clicked. Common for option selection, font choosers, or any single-choice selection. CBS_DROPDOWNLIST prevents typing (selection only).