Kbase 13300: How PROGRESS calculates width of a fill-in with font
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How PROGRESS calculates width of a fill-in with font
How does PROGRESS figure out how wide a fill-in is going to be?
The formula for calculating how wide a fill-in will be is:
(From 15-6 of Programming Handbook)
If the value is 3 characters or less, PROGRESS multiplies the
length of the string times the width of the widest character
in the font:
string-length * max-char-width
If the value is more the 3 but less than 13 long, PROGRESS uses
the widest character in the font for 3 characters and the
average character for the remaining characters:
(3 * max-char-width) + ((string-length - 3) * ave-char-width)
If the value is 13 characters or more, PROGRESS multiplies the
length of the string times the average character width for
the font:
string-length * ave-char-width
Progress Software Technical Support Note # 13300