bgiCreateSpinner

Category: BGI GUI

Syntax:

bgiCreateSpinner:Int(x:Int, y:Int, width:Int, height:Int, parentWin:Int)


Parameters

Returns

Int



Summary

Creates a number box with up and down arrows.

Takes x (Int), y (Int), width (Int), height (Int) and parentWin (Int).

Returns gizmo ID on success, 0 if parent not found.

The range starts as 0 to 100 and the value at 0. The arrows, the Up and Down keys, and a number typed in (taking effect on Enter or leaving the box) change the value; only digits and a leading minus can be typed. A change raises BGI_EVENT_COMMAND_UPDATE with ID BGI_EVENT_ID_SPINNER and the new value as the data.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn