SpinBoxValue ( spinbox )
Parameters
| spinbox - spin box gadget |
Description
|
Returns a spin box's current integer value. Requires Extended language mode. The result is always inside the range set with SetSpinBoxRange. Arrow clicks update it immediately; text the user is still typing counts only once committed with Enter or by leaving the field - at which point the spin box posts a $401 event with the value in EventData, the natural moment to read it: If EventSource()=xField Then x=SpinBoxValue(xField) Invalid typed text never reaches you: it reverts to the last good value on commit. See it working in the native input controls sample. See also: SetSpinBoxValue, SetSpinBoxRange, SetSpinBoxStep, CreateSpinBox. |
Index