Page 1 of 1

XML Dialogs not DPI aware?

Posted: Fri Dec 20, 2013 4:02 pm
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

Re: XML Dialogs not DPI aware?

Posted: Fri Oct 24, 2014 10:51 am
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