LABEL item definition

Defines attributes for a simple text area to display a read-only value.

Syntax 1: Defining a form field label

LABEL item-tag = field-name [ , attribute-list ] ;

Syntax 2: Defining a static label

LABEL item-tag: [ item-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. item-name identifies the form element of a static label, it is optional but recommended.
  4. attribute-list defines the aspect and behavior of the form item.

Attributes

COLOR, COLOR WHERE, COMMENT, FONTPITCH, HIDDEN, IMAGECOLUMN, JUSTIFY, REVERSE, SIZEPOLICY, STRETCH, STYLE, TAG, TITLE, UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE.

Form field label only: FORMAT, SAMPLE, STRETCHMAX, STRETCHMIN.

Static label only: TEXT.

Style attributes

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

Class-specific: textFormat.

Usage

Define the rendering and behavior of an label item tag, with an LABEL element in the ATTRIBUTES section.

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

Example

LAYOUT
GRID
{
[l1  :f1         ]
 ...

}
END
END

ATTRIBUTES
LABEL l1: label1, TEXT="Desc:"; -- This is a static label
LABEL f1 = vehicle.description; -- This is a form field label 
...