It is currently Sat Dec 15, 2018 7:46 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PB Formdesigner & DPI awareness confusion
PostPosted: Tue Sep 25, 2018 5:30 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 421
Location: Germany / one of the fishheads
Hello everyone,

I'm currently testing the PB internal form designer (5.70), because I thought I couldn't use Gnozal's "PureForm" anymore. The reason for this was that in old GUI projects the dimensions of the gadgets don't fit anymore when I load them into PureForm (e.g. texts are now wider than the width of the text gadget).

The whole problem is probably because these GUIs were created on my old computer where the desktop DPI setting was 100%. On my current computer with HD display it is 125%.

Since PureForm is not DPI aware, I assume that I shouldn't design GUIs on a "125% machine" anymore, because I would have to create the dialogs in 100% mode (which is too small for me on my current machine). If I would create them in such a way that I feel they fit on the 125% machine, they will be enlarged by 25% after compilation with DPI awareness at runtime - and that's too big at the end.

Here are a few examples to illustrate this with PureForm:
(I posted this topic also in the german forum, so the screenshots are commented in german, sorry for that)

Here a part of a GUI compiled without DPIA and executed on a computer with 100% desktop DPI (everything fits):
Image

Here now without DPIA and executed on a computer with 125% DPI:
Image

As expected, it doesn't fit anymore, so far so good.
(That the GUIs have the same width may be caused by the fact that the 100% DPI machine runs in a VM, which is hosted on my machine with 125% DPI)

Here are some examples compiled with DPI awareness.

With DPIA and executed on a computer with 100% DPI:
Image

Again everything is okay as expected.

Now one with DPIA and executed on a computer with 125% DPI:
Image

It also fits almost everything, because PB upscaled everything (a "ver-" has unfortunately disappeared).

When I load this GUI project in PureForm to edit it, it looks like this (on the 125% machine):Image

The GUI is not scaled and the text is not reduced. The gadgets are too small for the content. So I assume that I can only design a GUI in PureForm on a native 100% DPI machine, so that after compilation with activated DPI awareness everything is displayed in the right proportion. That's why I took a look at the PB internal designer (before I always avoided it because I don't like its handling).

Now a comparison with the PB internal designer. Both tests have been compiled on the 125% DPI machine.

A window compiled without DPI awareness:
Image

And here compiled with DPI awareness:
Image

Now we come to the point of confusion:

Do I always design the GUI in 100% mode here? Or rather in 125% mode, because my computer running PB is set to 125% DPI.

If I compile such a GUI with DPI awareness, does the executable have an even higher DPI resolution ( another +25% of 125% of the original size)?

What is actually 100% on my computer with 125% DPI setting? Can I even guess what the GUI looks like on a real 100% DPI computer?

Here again everything in comparison, but as I said the 100% computer runs in a VM, which runs on the 125% computer.

Image

Shouldn't the PB Designer have a setting to work in the 125% size while designing? One could then already determine during the design if the GUI is too large or not.

But as I said, if the designer scales it again by 25%, on a 125% computer is it really 125% or already 156.25% (125 + 25% of 125).

The longer I think about it, the more it confuses me. :shock: :(
Can anyone give me a definitive statement on this?

Thank you very much.

Kind Regards
Kurzer

_________________
Excuse my bad english, my nativ language is german.
PB 5.62, OS: Windows 7 Pro x64, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520
"Happiness is a pet." | "Never run a changing system!"
My current age: 50 years


Top
 Profile  
Reply with quote  
 Post subject: Re: PB Formdesigner & DPI awareness confusion
PostPosted: Wed Oct 03, 2018 11:42 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 421
Location: Germany / one of the fishheads
Sorry for pushing this, but that nobody reacts to this topic confuses me a bit. Maybe my fears are nonsense and I just overlook something you take for granted or the problem with the 125% + 25% DPI scaling is a real problem that needs to be thought about first. And maybe that's the reason why nobody has written anything about it yet.

Can any of you perhaps post a screenshot of the standard window from the form designer here, which was shot on a computer with real 100% desktop scaling? I would like to know if this has a different size than the screenshot of my "100%" window, which was displayed in a VM running on a 125% computer.

_________________
Excuse my bad english, my nativ language is german.
PB 5.62, OS: Windows 7 Pro x64, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520
"Happiness is a pet." | "Never run a changing system!"
My current age: 50 years


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye