XML Dialogs not DPI aware?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Kukulkan
Addict
Addict
Posts: 1352
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

XML Dialogs not DPI aware?

Post by Kukulkan »

Hello,

if I do a XML dialog and set a vbox area with a fixed height, the height does not scale with system DPI settings. If I place something inside that area, the space is to small if someone changed DPI...

Example:

Code: Select all

<hbox height='70'>
  <!-- some elements that I create during runtime -->
</hbox>
The height of the vbox stays 70 pixels on all DPI settings. I place some images in there and therefore spacing fails. It is the same for any other elements. I believe such height, width, min/max/height/width should also scale with DPI.

As I include the XML during compiletime I don't like to calculate these values on the fly. I really had to calculate a lot of values in such case...

What is best practice for such problem?

Best

Kukulkan
User avatar
Kukulkan
Addict
Addict
Posts: 1352
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: XML Dialogs not DPI aware?

Post by Kukulkan »

I'm still having this problem. Again, I like to use some images in my dialogue (header image) but it does not work if DPI is scaled. Especially for the current 4K discussion, this is very important.

Ideally the image is stretched and the fixed height/width settings are scaled automatically. This would, at least, fix my problem.

How to solve this?

Kukulkan
Post Reply