Creates an up-down spinner control for numeric input.
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 an up-down spinner control for numeric input.
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 an up-down spinner (spin button) control with paired textbox for numeric input. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates "EDIT" textbox first, then creates UPDOWN_CLASS spinner using CreateUpDownControl. Sets UDS_SETBUDDYINT | UDS_ALIGNRIGHT style (spinner attached to right of textbox, auto-updates textbox with integer values). Initializes range 0-100, position 0. Creates CGizmo storing both edit and spinner HWNDs.
Creates an up-down spinner (spin button) control with paired textbox for numeric input. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates "EDIT" textbox first, then creates UPDOWN_CLASS spinner using CreateUpDownControl. Sets UDS_SETBUDDYINT | UDS_ALIGNRIGHT style (spinner attached to right of textbox, auto-updates textbox with integer values). Initializes range 0-100, position 0. Creates CGizmo storing both edit and spinner HWNDs. Returns gizmo ID on success, 0 if parent not found.
Spinners provide precise numeric input with up/down arrow buttons. Users can type values directly in the textbox or click arrows to increment/decrement. Use bgiGetGizmoText to retrieve the numeric value as text. Use bgiSetGizmoText to set value programmatically. The spinner automatically keeps the textbox synchronized. Common for quantity selectors, page numbers, or bounded numeric inputs.