Jump to content
  • Advertisement
Josheir

C++ Very Important VC++ Windowed API Program Scaling

Recommended Posts

Hello everyone, this is a very important question so I hope I get a response, please.  I created a program using windows API and it is nice.  However In a separate thread we discussed scaling up the graphics of a different game I was working on.  Now what I'm working on is a windowed utility that is 1024 x 768 for every monitor below 2x.  My question is do I need to scale up this simple window with buttons too.  I can do this if I need to, but the program is small so I was wondering if this is the way to go (increasing the size of the buttons, and the font size.)  So, do I need to make a different version for 2x, 4x, 8x?

 

I hope I get a response or I'm doomed.

Thanks,

Josheir

Share this post


Link to post
Share on other sites
Advertisement
Posted (edited)

Now that I think of it perhaps I am doomed anyways because the VC++ API buttons' labels might not scale up right.

Does anyone know about this too?

Thank you,

Josheir

Edited by Josheir

Share this post


Link to post
Share on other sites

There I was caught up in the moment, I found a solution to the button font size (fairly certain.)  Now, there is just the original important question.

 

Thank you,

Josheir

Share this post


Link to post
Share on other sites

I'm not sure what you mean by a level of indirection.

 

I have the button now displaying a label but I'm stumped about how it will appear on the 2x, 4x, 8x.  My understanding was to make everything looking similar to double the size of an image on 2x, etc.  

Now how can I work the button text than as far as making it look good on the larger resolution monitors?

Thanks; I've really struggled with this scaling,

Josheir

Share this post


Link to post
Share on other sites

Well, I believe I have skinned the cat.  I use factors to work with scaling and there is a width and height to the font for scaling too.  Now do I change it for different resolutions?

Josheir

Share this post


Link to post
Share on other sites

So you're making some sort of windowed utility application?

Is it important for some reason that it fills the screen?

 

Many utility applications don't bother with any scaling, or only scale if the user manually resizes the window.

13 hours ago, Josheir said:

Now what I'm working on is a windowed utility that is 1024 x 768 for every monitor below 2x.

Below 2× what?

Share this post


Link to post
Share on other sites

Are you working on some kind of custom UI Widget toolkit that runs on Windows? 

Share this post


Link to post
Share on other sites
Posted (edited)
13 hours ago, jbadams said:

Below 2× what?

Sorry, 2K.

8 hours ago, mr_tawan said:

Are you working on some kind of custom UI Widget toolkit that runs on Windows? 

I'm using Windows API.

13 hours ago, jbadams said:

So you're making some sort of windowed utility application?

Is it important for some reason that it fills the screen? 

 

I guess it isn't, I thought it might not be readable on the higher resolutions, for example 4k or higher (it would be to little) especially the button text (geeze, it would be beneficial if it is readable )?

I have never worked with these large monitors so I need help in understanding.  How would my buttons/button text and actual font text appear on these higher resolutions?

 

13 hours ago, jbadams said:

Many utility applications don't bother with any scaling, or only scale if the user manually resizes the window. 

By manually resize the window what do you mean, could you be more specific and it's unclear to me.  I'm thinking maybe you mean the user changes their own resolution in display settings?  

.

 

Thanks everyone,

Josheir

Edited by Josheir

Share this post


Link to post
Share on other sites
Posted (edited)

My windowed application looks fine at 1920 x 1080 on a very large TV.  Can I have faith that with the 4x and 8x there will always be a resolution that will work well for me?

Josheir

EDIT : The width only uses 27 inches.

 

It seems like it would be okay since 2k are usually 23 inches diagonal and higher and 4k and 8k can use an allowable resolution.

Edited by Josheir

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!