Size of the dialog box changes with resolution of the system running it.  
Author Message
Sumit Bhatnagar





PostPosted: Visual C++ General, Size of the dialog box changes with resolution of the system running it. Top

Hello! Application that i am working on has an interface dialog box. The problem is that , when the same application is run on a different system with lower resolution, the dialog box's extends out of the viewing area, hiding away important controls.

I ve heard of a property called 'Dockable' which results in the application resizing itself according to the system's resolution.

Please suggest a better alternative.




Visual C++9  
 
 
Peter Ritchie





PostPosted: Visual C++ General, Size of the dialog box changes with resolution of the system running it. Top

That's an inherent limitation of Windows dialogs.  Dialog dimensions are based on dialog units: which is a function of font type and size.  You can try using a smaller font; but, in most cases your dialog is simply too big to handle the smallest Windows resolution (640x480 or 800x600).  Docking a dialog may allow you to scroll around in the dialog to get access to all the controls; but it won't change the dimensions of the dialog and won't allow all controls to be visible at all times if your dialog is too big.

You need to either decide what minimum resolution you want to support and design a dialog to fit that resolution (with a specific font) or accept the Windows default minimum resolution.  Regardless, with the ability of the user to choose resolution and font size you have no real way of making a dialog that can't possibly be too big for all screen resolutions and font sizes.