Defines a spin box widget to enter integer values.
The SPINEDIT form item defines a field where the users can increase or decrease the number value by a specific increment by clicking an up or down arrow button, or by typing the value directly into the text edit box.
Use a SMALLINT or INTEGER variable with a SLIDER form item. Larger types like BIGINT or DECIMAL are not supported.
SPINEDIT ... STEP = 5;
The VALUEMIN and VALUEMAX attributes define respectively the lower and upper integer limit of the spin-edit range. There is no default minimum or maximum value for the SPINEDIT widget.
This widget is not designed for CONSTRUCT, as you can only enter an integer value.Some front-ends support different presentation and behavior options, which can be controlled by a STYLE attribute. For more details, see Common style attributes.
To inform the dialog when a value changes, define an ON CHANGE block for the SPINEDIT field. The program can then react immediately to user changes in the field:
-- Form file (grid layout) SLIDER s1 = options.opts_rate, VALUEMIN=0, VALUEMAX=100; -- Program file: ON CHANGE opts_rate -- The value of the spinedit has changed
For more details, see Reacting to field value changes.