Sign in to follow this  
Xiachunyi

Dialog Box Size in different resolutions

Recommended Posts

Hello, one of my current projects utilizes a large amount of dialog boxes. Out of interest, I decided to see how my program would look like under a larger resolution; needless to say, my dialog box and its controls are very small. Is there some way to retain the size that the dialog box is in, when created, on the end-user's computer as compared to when it was developed? Thank you.

Share this post


Link to post
Share on other sites
well i would guess you could make some sort of abstract size for the dialogs then
write something to translate accoring to the current resloution, does that make sense?

by the way, you talking about windows dialogs right?

Share this post


Link to post
Share on other sites
What kind of graphics API are you using? If you're using something which does not abstract 3D hardware scaling graphics is quite easy. If you're using a conventional 2D API that becomes more difficult however. You can of course calculate the size of those boxes relative to the screen size of course, but usually resized blit functions in 2D APIs tend to be effective (unless they utilize 3D hardware for that).

EDIT: If you mean M$ Windows dialog boxes, like the previous poster said, I guess you'd have to resize them during runtime with API calls if you refer to a dialog box loaded from a resource template. I have never tried to automate something like that though; I guess child control would have to be stepped through and resized accordingly though.

Share this post


Link to post
Share on other sites
Sorry, I had a moment in which I thought everything was under Window's API. You are correct, I am utilizing the Window's Dialog Box. I normally code in 800x600, yes this is my default screen size, and I changed to 1024x768.

From taking a look at dialog boxes in programs such as Photoshop, Finale, and Dev-C++, it seems that "all" programs do not resize their dialog boxes at all. I guess it just seems wierd to me due to the fact that the static text and controls become miniature.

If one were to read information and carry out various functions within a dialog box, would it be of benefit to go through the trouble of resizing or just go with the others and let it be? Although, all the applications' I have can resize their work area to suit the size.

Thank you.

Share this post


Link to post
Share on other sites
Quote:
Original post by Xiachunyi
Sorry, I had a moment in which I thought everything was under Window's API. You are correct, I am utilizing the Window's Dialog Box. I normally code in 800x600, yes this is my default screen size, and I changed to 1024x768.

From taking a look at dialog boxes in programs such as Photoshop, Finale, and Dev-C++, it seems that "all" programs do not resize their dialog boxes at all. I guess it just seems wierd to me due to the fact that the static text and controls become miniature.

If one were to read information and carry out various functions within a dialog box, would it be of benefit to go through the trouble of resizing or just go with the others and let it be? Although, all the applications' I have can resize their work area to suit the size.

Thank you.


It seems the standard is to leave dialog boxes and such the same absolute size in pixels, and only resize the work area like you said. I think you can leave it like that without users complaining; they have come to expect that kind of behaviour from Windows-style applications.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this