|
The way that the size of a window is calculated has changed to provide consistency across development and runtime systems with different display settings.
Usage
The size of window trim elements, such as title bars, scroll bars, and borders, varies among platforms. For example, on Windows XP with the Windows XP display style, the size of the active and inactive title bars is 25. On Windows 2000 and on Windows XP with the Windows Classic style, the size of title bars is 18. Users can also customize these settings on the Appearance tab page of the Display Properties dialog box in the Windows control panel.
In previous versions of PowerBuilder, the size of a window was determined by the settings for window trim elements on the computer on which it was saved. As a result, controls close to the edges of a window were clipped if the window was opened or the application was run on a computer where the size of window trim elements was larger.
In this release of PowerBuilder, the size of new windows takes into account the size of borders, title bars, scroll bars, and menu bars, and whether the ClientEdge property is set. When the window displays at design time or runtime, it uses the settings for these elements on the current system. You do not need to change any settings for this window sizing behavior to take effect for new windows.
Existing windows retain the window-sizing characteristics used in previous versions of PowerBuilder. If you want to apply the new behavior to existing windows, follow these steps:
- Close PowerBuilder.
- Add the SaveNormalize property to the Windows section of your PB.INI file and set it to 1:
[Window] SaveNormalize=1
- Open PowerBuilder and save each window you want to use the new sizing behavior.
|