STRETCH attribute
The STRETCH
attribute specifies how a
widget must resize when the parent container is resized.
Syntax
STRETCH = { NONE | X | Y | BOTH }
Usage
This attribute is typically used with form items that can be re-sized like IMAGE
, TEXTEDIT
, or WEBCOMPONENT
fields.
By default, such form items have a fixed width and height, but in some cases you may want to force the widget to resize vertically, horizontally, or in both directions.
- To allow the widget to resize vertically only, use
STRETCH=Y
. - To allow the widget to resize horizontally only, use
STRETCH=X
. - To allow the widget to resize vertically and horizontally, use
STRETCH=BOTH
.
Note: By default,
WEBCOMPONENT
form items stretch in both directions
(STRETCH=BOTH
is the default).Example
IMAGE i01 = FORMONLY.image01, STRETCH=BOTH;