bgiCreateSpinner

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

x Int
y Int
width Int
height Int
parentWin Int

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.

Example

Example.bam
; No example implemented yet