STRETCHMIN attribute

The STRETCHMIN attribute defines the minimum stretching width.

Syntax

STRETCHMIN[@screen-size] = min-width
where screen-size can be:
{ SMALL | MEDIUM | LARGE }
  1. screen-size is a screen size selector that indicates when the minimum stretch width must apply, depending on the size of the screen. Several STRETCHMIN@screen-size attributes can be used for the same element.
  2. min-width is an integer that defines the minimum width of the element. Default is the number of cells used by the item tag of the column.

Usage

The STRETCHMIN attribute specifies the minimum width of form elements, when the STRETCH=X attribute is used by the element (or by the root LAYOUT element), or when the TABLE/TREE parent container defines the STRETCHCOLUMNS attribute.

By default, the minimum width is the number of cells used by the item tag in the LAYOUT section.

Note that with form elements inside a GRID or SCROLLGRID container, the items alignment and grid dependency rules can hide the effect of the STRETCHMIN attribute.

The SIZEPOLICY attribute has a lower priority than STRETCHMIN.

The STRETCHMIN attribute can be combined with the @screen-size selector, to get different stretch behaviors depending on the screen size.

Example

EDIT f01 = customer.cust_name, STRETCH=X,
   STRETCHMIN@MEDIUM=10, STRETCHMIN@LARGE=15;