Form specification files / Form item attributes |
The WIDTH attribute defines an explicit width of a form element.
WIDTH = integer [CHARACTERS|COLUMNS|POINTS|PIXELS]
By default, the size of an element is defined in characters and automatically computed by the form compiler according to the size of the form element in the layout.
For items like images, the default width is defined by the number of horizontal characters used in the form item tag. You can overwrite this default by specifying the WIDTH attribute. You typically give a number of pixels.
For tables, the default width is defined by the columns used in the table layout. You can overwrite this default by specifying the WIDTH attribute. You typically give a number of columns. This allows you to use tables with a large number of columns, but a small initial width.
If you don't specify any unit, the size unit defaults to CHARACTERS, which defines the number of grid cells.
TABLE t1 ( WIDTH = 5 COLUMNS )