Migration Guide : E. Features Introduced in OpenROAD 6.2 : Changes to Existing Features : TableField Exact Height and Exact Width Now Programmable
 
Share this page          
TableField Exact Height and Exact Width Now Programmable
Formerly, the height and width of a table field were determined by its child field size and there was no way to specify an exact height or width. With this release of OpenROAD, you can now set the exact height and width of table fields in Workbench and 4GL code.
Two new attributes are added to the TableField system class:
ExactHeight
Data Type: integer
4GL Access: RW
The ExactHeight attribute specifies the height of a TableField.
For a vertical TableField, if ExactHeight is smaller than the OuterHeight of the TableField, the NumVisibleRows is decreased and the underlying table body is decreased. If ExactHeight is larger than the OuterHeight of the TableField, then additional visible rows are added to so that the last row is a partial row unless it fits exactly in the space provided.
For a horizontal TableField, if ExactHeight is smaller than the OuterHeight of the TableField, the number of displayed columns is decreased. If ExactHeight is larger than the OuterHeight of the TableField, an additional column will appear as an empty column field with a header button containing no text.
ExactWidth
Data Type: integer
4GL Access: RW
The ExactWidth attribute specifies the width of a TableField.
For a vertical TableField, if ExactWidth is smaller than the OuterWidth of the TableField, the TableField is set to the appropriate size, and a horizontal scrollbar will appear as needed. If ExactWidth is larger than the actual OuterWidth of the TableField, an additional column appears as an empty column field with a header button containing no text.
For a horizontal TableField, if ExactWidth is smaller than the OuterWidth of the TableField, the NumVisibleRows is decreased and the underlying table body is decreased. If ExactWidth is larger than the OuterWidth of the TableField, then additional visible rows are added to so that the last row is a partial row unless it fits exactly in the space.
These attributes can be set in the Workbench Property Inspector when a table field is selected.
For more information, see the Workbench User Guide and the Language Reference Guide.