The Windows CE operating system acts as though a VGA screen has the same dimensions as a QVGA screen, using the greater resolution to provide a higher quality picture and font definition rather than to increase the screen surface area. Although the PocketBuilder Window painter lets you set a window surface size for VGA screens in portrait (480 x 640 pixels) and landscape (640 x 480 pixels) orientations, it displays the full physical screen size for the extra resolution, in a manner consistent with the desktop dots-per-inch setting.
This results in certain display issues, with controls and fonts occupying a larger area of the display screen at runtime than at design time. When a DataWindow control is not completely visible on the screen, you might not be able to see a vertical or horizontal scroll bar if the number of rows or columns exceeds the screen display capability.
To work around this problem, you can call the ScreenDisplayZoom function. If you set the zoom factor to 50%, the sizes of controls and fonts on VGA devices and emulators at runtime match their pixel sizes at design time. Otherwise, you can use a QVGA screen size at design time, even when you deploy your applications to a VGA device or emulator. The windows automatically resize to fit the runtime screen dimensions, and the runtime controls retain the sizes that you set for them at design time. [CR 416842]
Copyright © 2006. Sybase Inc. All rights reserved. |
![]() |