Kbase P8259: Can not use LOAD and USE to change default font
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/26/2005 |
|
Status: Unverified
SYMPTOM(s):
Can not use LOAD and USE to change default fonts
Can not change the default font when calling another application from the current application
Each application has a different ini file
Calling application A uses font size 10 for instance and called application B uses font size 8. When B starts the default font is size 10 and it looks bigger even though B was compiled using font size 8
The called application uses the correct font when it is not called from another application with a different font size
CAUSE:
4GL Reference Guide:
LOAD - Creates application defaults, involving colors, fonts, environment variables, etc
USE - Specifies environment defaults that apply to subsequent windows that the application creates. The defaults might reside in the registry or in an initialization file. The defaults can involve colors, fonts, environment variables, etc. You must specify a default in a LOAD statement before you specify it in a USE statement.
Portability Guide:
A character unit is based on the default font. The default font specified in the Startup Section of the registry or the progress.ini determines the size of the character unit.
Fonts are bound into r-code at compile time. If you build your application with one font and try to deploy it with a different font, the result is unpredictable. The environment file you use at compile time should have the same font definitions as the environment file at run time.
FIX:
Do not call program B from inside program A. Use a shortcut instead. Or, scale one of the applications using the AppBuilder' scaling utility. If using Dynamics, customizing the ADM might be required.