Accurately Adjust the Width of a Table-View Subform
A Table-View Subform shows subrecords arranged in a table or spreadsheet-like view. There are scroll-bars to view other parts of the subform if it cannot be seen. A good example of this is the Cities subform within the Countries sample database provided with Sesame.
To correctly adjust the width of the subform table follow this simple formula:
Table row header width + Combined widths of subform LEs + Vertical scrollbar width
The Table row header width can be set using the sesame.ini file (see Appendix 7 of the Sesame User Guide for more information on all the possible .ini file entries):
TABLE ROW HEADER WIDTH: Sets the width in pixels of the record number column appearing in Table View and Table View Subforms.
Example: TABLE ROW HEADER WIDTH: 50
Default: 70
The Combined widths of subform LEs (layout elements) can be found by opening the form in SDesigner. Using the Countries.db as an example, you would open this database, and then open the "Cities" subform. There are two LEs in this subform: "City" and "Population". Under the Look/Position tab in the Property Viewer window, you will find each of the element's widths. Adding these measurements together gives you the combined widths of the subform LEs (City=140 + Population=80 = 220).
The Verticle scrollbar width on a table subform is 19.
Therefore, your formula, using the Countries.db as an example would be:
70 + 220 + 19 = 309
Thus, the Cities table-view subform will need to be at least 309 pixels long. (Almost every measurement in Sesame refers to the number of pixels, not including some widths in Reports and the PrintString command.)