IMAGE item definition
Defines attributes for an area that can display an image resource.
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 ]
;
- 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 item for a static image, it is optional but recommended.
- 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
, STRETCHMAX
, STRETCHMIN
.
Static image only: IMAGE
.
Style attributes
Common: backgroundColor
, border
, fontFamily
, fontSize
, fontStyle
, fontWeight
, 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";
...