Form file structure / ATTRIBUTES section |
The SLIDER item type defines a horizontal or vertical slider.
Figure 1. SLIDER item type
SLIDER item-tag = field-name [ , attribute-list ] ;
COLOR, COLOR WHERE, COMMENT, DEFAULT, FONTPITCH, HIDDEN, INCLUDE, JUSTIFY, ORIENTATION, SAMPLE, SIZEPOLICY, STEP, STYLE, TABINDEX, TAG, VALIDATE LIKE, VALUEMIN, VALUEMAX.
Table column only: UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, TITLE.
The SLIDER form item type defines a classic widget for controlling a bounded value. It lets the user move a slider along a horizontal or vertical groove and translates the slider's position into a value within the legal range.
This sort of form item has to be used with a SMALLINT or INTEGER variable, larger types like BIGINT or DECIMAL are not supported.
The VALUEMIN and VALUEMAX attributes define respectively the lower and upper integer limit of the slider information. Any value outside this range will not be displayed; the step between two marks is defined by the STEP attribute. The ORIENTATION attribute defines whether the SLIDER is displayed vertically or horizontally. If VALUEMIN and/or VALUEMAX are not specified, they default respectively to 0 (zero) and 5.
This item type is not designed for CONSTRUCT, as the user can only select one value.
SLIDER f001 = workstate.duration, VALUEMIN=0, VALUEMAX=5, STEP=1;