[DONE !!!] PB Formdesigner & DPI awareness confusion
Posted: Tue Sep 25, 2018 5:30 pm
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):
Here now without DPIA and executed on a computer with 125% DPI:
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:
Again everything is okay as expected.
Now one with DPIA and executed on a computer with 125% DPI:
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):
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:
And here compiled with DPI awareness:
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.
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.
Can anyone give me a definitive statement on this?
Thank you very much.
Kind Regards
Kurzer
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):
Here now without DPIA and executed on a computer with 125% DPI:
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:
Again everything is okay as expected.
Now one with DPIA and executed on a computer with 125% DPI:
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):
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:
And here compiled with DPI awareness:
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.
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.
Can anyone give me a definitive statement on this?
Thank you very much.
Kind Regards
Kurzer