IMAGE item definition

Defines an area that can display an image resource, in a grid-based layout.

Syntax 1: Defining a form field image

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

Syntax 2: Defining a static image

IMAGE 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 item for a static image.
  4. attribute-list defines the aspect and behavior of the form item.

Form attributes

ACTION, AUTOSCALE, COMMENT, HEIGHT, HIDDEN, SIZEPOLICY, STYLE, STRETCH, TAG, TITLE, UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, WIDTH.

Image field only: JUSTIFY, SAMPLE.

Static image only: IMAGE.

Style attributes

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

Class-specific: alignment.

Usage

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

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

Example

LAYOUT
GRID
{
[f1                     ]
[                       ]
[                       ]
[                       ]
 ...

}
END
END

ATTRIBUTES
IMAGE f1 = cars.picture,
      SIZEPOLICY=FIXED, AUTOSCALE,
      COMMENT="Picture of the car";
...