Page 1 of 2

Handling hi res

Posted: Sun Aug 02, 2020 5:22 pm
by Lembasts
Greetings,
I have a PS studio app which looks fine on most monitors. However someone just got a 4k monitor and everything looks awful.
How difficult is it to make sure every control is sized appropriately for hi res monitors?

Thanks
David

Re: Handling hi res

Posted: Sun Aug 02, 2020 5:33 pm
by jvierra
It depends on the form and if the form was designed with a consistency and layout that lends it self to translation.
You need to look at the Sapien blogs that discuss how to work with this. Look in the InfoCenter for articles on working with hi-rez monitors.

Re: Handling hi res

Posted: Sun Aug 02, 2020 5:41 pm
by Lembasts
Thanks. It appears that I have to recalculate the size of every control in the load event?

Re: Handling hi res

Posted: Sun Aug 02, 2020 7:06 pm
by Alexander Riedel
Not necessarily. That really depends on your original layout and the scaling factor used on the 4K monitor. Screenshots from both would help greatly to provide an opinion.

Re: Handling hi res

Posted: Sun Aug 02, 2020 8:19 pm
by Lembasts
Thanks - but being department of defence we cant show anything. Im just trying to get my head around the basic concepts, sizing and scale, to understand exactly what it is that needs doing...

Re: Handling hi res

Posted: Sun Aug 02, 2020 8:22 pm
by Lembasts
Mostly it seems to be the text not scaling. e.g. the text that used to display fine on a button no longer fits. Its like the button shrunk but the text didnt. There also are a few issues with drop down list boxes where they dont seem to fit where they used to.

Re: Handling hi res

Posted: Mon Aug 03, 2020 3:56 pm
by Lembasts
I can post a snippet. Here you can see that the buttons have sized ok relative to the group box but the button text and groupbox text is way to large.
Snap1.jpg
Snap1.jpg (22.01 KiB) Viewed 2882 times
As the text within the button is not a control in itself, does that mean that I have to adjust all other controls like the form and groupbox and buttons to be larger to fit the text?

Re: Handling hi res

Posted: Mon Aug 03, 2020 4:39 pm
by Alexander Riedel
Can you show that snippet in its "normal" form, for comparison?

Re: Handling hi res

Posted: Mon Aug 03, 2020 4:57 pm
by Lembasts
Sure.
Snap2.jpg
Snap2.jpg (40.34 KiB) Viewed 2878 times

Re: Handling hi res

Posted: Wed Aug 05, 2020 12:32 am
by Lembasts
Looking at https://info.sapien.com/index.php/guis/ ... i-displays
it appears I just have to run set-dpiawareness at form load and then set autoscale to font.
Then do a bit of docking and some manual font setting and all will be well?