Kbase 16962: Compile Problems after Default Font Change
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
FACT(s) (Environment):
Progress 8.2A
SYMPTOM(s):
**widget name will not fit in FRAME frame name in PROGRAM . (4028)
widget id does not fit in parent parent widget id. (4041)
**Attribute attribute must be greater than or equal to 1 on widget id. (4081)
CHANGE:
In Progress 8.2A and later the default font is changed changed to MS Sans Serif, 8 point in order to be compatible with Microsoft's style guidelines for Windows 95. In previous Progress versions, the System font is the default.
CAUSE:
The PPU dimensions have changed with the new font and it might affect the screen layout. Even though most controls, text strings, and windows shrink by the same proportions, some layouts might no longer look correct and might not compile.
Errors such as the above may occur during compilation, when you load the file into the UIB/AppBuilder, or when you run the application:
Other differences between the versions might include fields that need to be resized to correct clipping, or fields that need to be repositioned to correct an over-lap.
FIX:
Progress has added the Screen Scaling utility to ProTools that helps adjust the position and size of objects in existing UIB/AppBuilder generated procedures.
The utility only works on .w files that are generated in the UIB/AppBuilder. The UIB/AppBuilder must be running when the tool is invoked.
This utility is best used if you specified font 4 (MS Sans Serif Size 8) for field-level widgets in your Progress version 8.0x or 8.1x applications. Make sure you have backup copies of all files that are to be processed because the originals are overwritten by the scaled versions.
Do not use the Screen Scaling utility more than once on the same source file. If you do, you double the scaling process.
Only the master layout of a multi-layout file is scaled. Alternative layout controls that are in the "sync with the master" option are also scaled. Alternative layout controls that are different from the master are not scaled.
If you do not want to adjust the layouts of your procedures you can revert the default font of Progress back to the System font by removing the DefaultFont setting from the Startup Key in the Windows Registry. Follow these steps to remove the Registry key:
1) Run the Registry Editor program (regedit.exe on Windows 95, or
regedt32.exe on Windows NT).
2) Select the HKEY_CURRENT_USER window.
3) Navigate to Software > PSC > PROGRESS > 8.2a > Startup.
4) To return to the System font, highlight the DefaultFont value
and press the Delete key.
To return to the MS Sans Serif font:
a) Select Edit/Add Value from the menu.
b) Enter "DefaultFont" for the Value Name.
c) Press OK.
d) Type "MS Sans Serif, size=8" for the string value.
e) Press OK.
5) Close the Registry Editor.
6) Restart Progress.
If you do not want to modify the Registry settings for every machine the application is installed on, you can make the changes given above to your .ini file and use the following startup parameters on the command line (not in a .pf file) to tell Progress to use the specified .ini file instead of the Registry:
-basekey ini -ininame your ini file goes here