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 ] ;
- 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.
- item-name identifies the form element (name attribute in .42f) of a static label.
- 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
.
Style attributes
Common: backgroundColor
, border
, fontFamily
, fontSize
, fontStyle
, fontWeight
, localAccelerators
, showAcceleratorInToolTip
, 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
...