COMBOBOX stack item

Defines a line-edit with a drop-down list of values in a stack-based layout.

Syntax

COMBOBOX field-name [ , attribute-list ] ;
  1. field-name identifies the name of the screen record field.
  2. 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 stack item, with a COMBOBOX element inside a STACK container.

For more details about this item type, see COMBOBOX item type.

Example

COMBOBOX customer.city,
   ITEMS=((1,"Paris"),
          (2,"Madrid"),
          (3,"London"));
COMBOBOX customer.sector,
   REQUIRED,
   ITEMS=("SA","SB","SC");
COMBOBOX customer.state,
   NOT NULL,
   INITIALIZER=myinit;