Form file structure / ATTRIBUTES section |
The SPINEDIT item type defines a spin box widget (spin button).
Figure 1. SPINEDIT item type
SPINEDIT item-tag = field-name [ , attribute-list ] ;
AUTONEXT, COLOR, COLOR WHERE, COMMENT, DEFAULT, FONTPITCH, HIDDEN, INCLUDE, JUSTIFY, NOT NULL, NOENTRY, REQUIRED, SAMPLE, SIZEPOLICY, STEP, STYLE, TABINDEX, TAG, VALIDATE LIKE, VALUEMIN, VALUEMAX.
Table Column only: UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, TITLE.
The SPINEDIT form item type allows the user to choose a value either by clicking the up/down buttons to increase/decrease the value currently displayed, or by typing the value directly into the spin box.
This widget has to be used with a SMALLINT or INTEGER variable, larger types like BIGINT or DECIMAL are not supported.
The step between two values is defined by the STEP attribute.
The VALUEMIN and VALUEMAX attributes define respectively the lower and upper integer limit of the spin-edit range. There is no default min or max value for the SPINEDIT widget.
This widget is not designed for CONSTRUCT, as you can only enter an integer value.
SPINEDIT f001 = command.nbItems, STEP=5;