Blitz3D+ Command Reference

SetSpinBoxRange spinbox,minimum,maximum

Parameters

spinbox - spin box gadget

minimum - lowest value the spin box accepts

maximum - highest value the spin box accepts; must not be below minimum

Description

Sets the minimum and maximum values a spin box accepts.

Spin boxes are integer-only editors, and the range is their safety net: arrow clicks stop at the ends, values typed by the user clamp when committed, and SetSpinBoxValue clamps too. A new spin box starts with a range of 0 to 100 - set the real one before wiring it to anything, as in an inspector field that accepts -100 to 100.

Changing the range immediately re-clamps the current value, silently (no $401 event). Negative bounds are fine; a minimum greater than the maximum stops with a runtime error.

See it working in the native input controls sample.

Requires Extended mode.

See also: CreateSpinBox, SetSpinBoxValue, SpinBoxValue, SetSpinBoxStep.

Index