Jump to content
Sign in to follow this  
1thangne

GUI are not the same size

Recommended Posts

Hello.

 

 

Base:

 - My monitor scale up to 175% DPI.

 - I use C++Builder 11.1

 

My problem:

 - When I create complex GUI (some by IDE, some by code). They are not the same size at runtime.

 - (please see attachment)

 

Please show me how could it fixed.

Thank you very much

 

GUI-they-are-not-the-same-size.png

Share this post


Link to post

Of course. When form is shown, it gets scaled (including all controls inside). So W_new := W*Scale and 500 turns to 500*1.75. But when you create a control at runtime, the dimensions are already considered "scaled".

Share this post


Link to post

All you need to do is calculate the correct size. No biggie.

Share this post


Link to post

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  

×