It is currently Sun Jan 24, 2021 1:06 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: XML Dialogs not DPI aware?
PostPosted: Fri Dec 20, 2013 4:02 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1259
Location: germany
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:
<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


Top
 Profile  
Reply with quote  
 Post subject: Re: XML Dialogs not DPI aware?
PostPosted: Fri Oct 24, 2014 10:51 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1259
Location: germany
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


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 9 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