LABEL stack item
Defines a simple text area to display a read-only value in a stack-based layout.
Syntax 1: Defining a form field label
LABEL field-name [ , attribute-list ] ;
Syntax 2: Defining a static label
LABEL : item-name, TEXT = [%]"string" [ , attribute-list ] ;
- field-name identifies the name of the screen record field.
- item-name identifies the form element (
name
attribute in .42f). - string defines the label text, with the % prefix it is a localized string.
- attribute-list defines the aspect and behavior of the form item.
Form 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 a label stack item, with a
LABEL
element inside a STACK
container.
For more details about this item type, see LABEL item type.
Example
LABEL vehicle.description, STYLE="normal";