|
|
t e m p o r a l |
d o o r w a y |
||||||||||
Multi-Resolution Applications |
||||||||||||
IntroductionNot every user has the same screen resolution - some use 1024x768, others 800x600, and a large number still use the basic VGA resolution of 640x480. This can be a major problem for a developer, since it would seem to require several separate user interfaces for each application. However, there is an easier way. SizersSeveral companies exploit the presence of height and width properties and the scalability of fonts in a component called a sizer. A sizer reacts to changes in resolution or even changes in window size and propagates those changes to its child controls - in some cases even resizing the fonts. In my case, I use the GTSizer component, a native VCL component at a reasonable price, from Genotechs. Strategies
TestingAs mentioned, it is not enough to follow the practices outlined above. You must still test at different resolutions and, preferably, also with different display drivers. Inititally, you can test your layout by changing the resolution on your development machine. However, be wary - some drivers let you change the resolution, but without a complete reboot the changes are not fully effective; also note that using large fonts vs. small fonts has an effect on the resolution (for instance can change from 96 pixels per inch to 120 pixels per inch) and this will change the appearance of your interface. And this testing will probably blast your comfortable desktop settings, leaving you with improperly sized fonts or a disarranged desktop - so take note of where everything is before you start, and be prepared to take the time to put it back the way it was when you finish testing. |
||||||||||||
|
Copyright © 2004 by Mark
Cashman (unless otherwise indicated), All Rights Reserved
|