COMBOBOX item definition
Defines attributes for an edit field with a drop-down list.
Syntax
COMBOBOX item-tag = field-name [ , attribute-list ] ;
- item-tag is an identifier that defines the name of the item tag in the layout section.
- field-name identifies the name of the screen record field.
- attribute-list defines the aspect and behavior of the form item.
Form attributes
AUTONEXT, COLOR, COLOR WHERE, COMMENT, DEFAULT, DOWNSHIFT, FONTPITCH, HIDDEN, KEY, INCLUDE, INITIALIZER, ITEMS, JUSTIFY, NOT NULL, NOENTRY, PLACEHOLDER, QUERYEDITABLE, REQUIRED, REVERSE, SAMPLE, SCROLL, SIZEPOLICY, STRETCH, STRETCHMAX, STRETCHMIN, STYLE, UPSHIFT, TAG, TABINDEX, UNSORTABLE , UNSIZABLE , UNHIDABLE , UNMOVABLE, TITLE, VALIDATE LIKE.
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, textColor, textDecoration.
Usage
Define the rendering and behavior of a combobox
item tag, with a COMBOBOX
element in the ATTRIBUTES section.
For more details about this item type, see COMBOBOX item type.
Example
LAYOUT
GRID
{
[f1 ]
...
}
END
END
ATTRIBUTES
COMBOBOX f1 = customer.city,
ITEMS=((1,"Paris"),
(2,"Madrid"),
(3,"London"));
...