PDA

View Full Version : Dialog sizes and different screen resolutions.



hvengel
2nd April 2006, 01:27
I normaly work on a machine with high resolution displays (1600x1200) to layout my dialogs in designer (3.3.4). The dialogs look fine when I run them on my desktop at full resolution but when I test them at lower resolutions such as 1280x1024 or 1024x768 they look horible.

The problem is that the WM knows how to correctly scale the fonts when the resolution is changed but the dialog size is not scaled. The result is that the dialog is very large relative to the fonts sizes at these lower resolutions with lots of whitespace. If I manually resize the dialogs when running at lower resolution they look fine. Is there some way to make the dialogs automatically size themselves based on the actual displayed font size rather than defaulting to a fixed number of pixels in size?

wysota
2nd April 2006, 01:52
If you use layouts and set proper sizeHint, dialogs should scale appropriately.

hvengel
2nd April 2006, 06:32
Spent some time working on the dialogs in designer. I was able to improve things considerably. I am still not totally satisfied but I think I am on the right track. Thanks.

wysota
2nd April 2006, 11:05
If you showed us your dialog files, maybe we could help.