IMAGE stack item
Defines an element to display an image resource in a stack-based layout.
Syntax 1: Defining a form field image
IMAGE field-name [ , attribute-list ] ;
Syntax 2: Defining a static image
IMAGE : item-name, IMAGE="resource" [ , attribute-list ] ;
- field-name identifies the name of the screen record field.
- item-name identifies the form element (
name
attribute in .42f) - resource is the image resource, see Providing the image resource.
- 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 stack item, with a IMAGE
element
inside a STACK
container.
Note: The
IMAGE
stack item can be used inside a stack container like a group, or as
root element of the STACK
container: When used directly under the
STACK
container, the IMAGE
stack item must be the only element in
the container. It will be rendered a scalable form item that can stretch to fit the front-end screen
size.For more details about this item type, see IMAGE item type.
Example
IMAGE cars.picture, COMMENT="Picture of the car";