Kbase 21687: How to retrieve the Witdh of a Browse column?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/05/2006 |
|
Status: Unverified
GOAL:
How to retrieve the Witdh of a Browse column?
GOAL:
Migration from Version 8 to Version 9
FACT(s) (Environment):
Progress Version 8.X
Progress Version 9.X
CAUSE:
If you migrate your application from V8 to V9 you may experience a difference in the appearance of certain widgets.
This is basically due to the fact that Progress has make some changes in the widgets appearances, their properties and also in the default fonts used between V8 and V9.
In example if you have a browser developed in V8.3B and migrated in V9.1C, you may experience that the column width is not the same. In V8 there was no WIDTH attribute for the widgets so after migrating to V9 you do not know the V8 WIDTH for the column of the browser.
FIX:
Possible solutions:
1.) The size of the label of the column is bigger that the one of the Field (Format "X", label "Customer Type"):
- Execute the Progress Statement against the V8 Browser:
DISPLAY FONT-TABLE:GET-TEXT-WIDTH-CHARS(label of the column, font number).
Then you can adjust the WIDTH of the column in the V9 Browse Widget property.
2.) The size of the label of the column is less that the size of the Field. (i.e. Format "X30" Label "NAME").
- Execute the following Progress Statement against the V8 browser.
DISPLAY FONT-TABLE:GET-TEXT-WIDTH-CHARS(string with maximal width of the column, font number).
Then you can adjust the WIDTH of the column in the V9 Browse Widget property.