Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Building a Screen : Maximizing Screen Layout

Maximizing Screen Layout
The Origin Row and Col fields combined with the Last Row and Col fields can be used to define the layout of the screen. Use negative values for the origin row of the bottom of the screen table to ensure they appear at the bottom of the screen even for different terminal sizes. If you want to have screen tables side by side, you must use the Last Row and Col attributes to specify the bottom right corner of the left screen tables.
Screen Table Definitions
The following example illustrates screen table definitions that are used for reference in the following two diagrams.

 
DEFINE SCREEN: SALES_INFO Unit: USR40
COMMAND ===>
PFkey Assignments Scroll Amount Entry Default Cursor Position
--------------- ---------------- ----------------
Up: 7 Down: 8 Table: Table:
Left: 10 Right: 11 Field: Field:
Validation Exit: 12
Help: 1 Refresh: 24
SCREEN TABLES: Origin Max Title Fix Last
Name Row Col occ Scroll Validation Rule Rows Col Row Col
---------------- --- --- --- - --------------- -- --- --- ---
_ COMP_TITLE 1 1 1 N 0 0 0 0
_ SALES_DATA 5 1 * Y 2 0 15 40
_ SALES_SUMMARY 16 1 1 Y 0 0 22 40
_ INVENTORY_DATA 5 41 * Y 2 0 0 0
_ FCNKEY_SPECS -1 1 1 N 0 0 0 0
_
_
_
PFKEYS: 6=PAINT 16=EXCLD 21=DISPLAY 18=SPEC_FCNKEYS 19=SCR_HELP 13=PRINT

 
Last Row Attribute Set to 22
Notice that in the following diagram there is wasted space below the SALES_SUMMARY screen table. This can be avoided by using negative numbers for the Last Row attribute. If the Last Row attribute for the SALES_SUMMARY screen table were set to -2 instead of 22, the screen table would expand to fill all the space in the 80x44 screen.
Last Row Attribute Set to -2
This diagram illustrates the layout of the screen when the Last Row attribute for the screen table SALES_SUMMARY is set to -2 instead of 22:

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved