COMBOBOX item definition

Defines a COMBOBOX item in a grid-based layout, in a grid-based layout.

Syntax

COMBOBOX item-tag = field-name [ , attribute-list ] ;
  1. item-tag is an identifier that defines the name of the item tag in the layout section.
  2. field-name identifies the name of the screen record field.
  3. 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, SAMPLE, SCROLL, SIZEPOLICY, STYLE, UPSHIFT, TAG, TABINDEX, UNSORTABLE , UNSIZABLE , UNHIDABLE , UNMOVABLE, TITLE, VALIDATE LIKE.

Style attributes

Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, localAccelerators, showAcceleratorInToolTip, textColor, textDecoration.

Class-specific: autoSelectionStart, comboboxCompleter, completionTimeout.

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"));
...