LABEL item definition

Defines a simple text area to display a read-only value, in a grid-based layout.

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 (name attribute in .42f) of a static label.
  4. attribute-list defines the aspect and behavior of the form item.

Attributes

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

Form field label only: FORMAT, SAMPLE.

Static label only: TEXT.

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 
...