DPi settings question
Tagged: DPI resolution
3 May, 2022 at 2:31 am #5216
I think its been asked but I cannot find it so here it goes.
Is there a way to have DI reload and update itself based on screen scaling? Like if I hook my laptop up to a external monitor and the resolution changes from 3000×2000 with a dpi of 200% to say 1920×1080 with a DPI of 100% and still maintain the look of the original resolution? As of now when I do this the font drops down to super small and the width gets a bit funky.
I recalled someone talking about onload or a if statement that could handle this but I for the life of me cannot find it.
Thanks in advance all.
3 May, 2022 at 8:54 am #5217
that’s the auto-scale option
3 May, 2022 at 10:59 pm #5218
I thought I had tried that and it did not scale well. I will try it again later this week. Thanks for the quick reply.
3 May, 2022 at 11:10 pm #5219
actuall i do have auto-scale enabled, will disable it and see how it goes.
4 May, 2022 at 3:21 pm #5220
Now its sstating to come back to me. NOT using auto-scale really messes up my control buttons. below is one of the items . The commented item is what i use with auo-scale on and then the uncommented is what is needed to adjust it so its legible.
#CONTROL=type:1,wide:1,control-style:,display:Help Desk URL:
ONTROL=font-size:55%,type:1,wide:1,control-style:,display:Help Desk URL:
here is how i have to change sizing with auto-scale off:
next i will havde to attach my external monitor once i get back to the office.
using the latest d.i 3.5 as well.
I also found someone indicated thisworked for them but i have not yet attempted it:
#Setting following compatibility flag fixed our scaling issues:
#”C:\\Program Files\\DesktopInfo\\DesktopInfo64.exe”=”~ DPIUNAWARE”
10 May, 2022 at 5:49 pm #5225
So I have been playing around with this today and attached are the outcomes of various views with auto-scale on and off and between built-in and external disaplys. The only major differences in the ini files are:
the biggest hurdle here is of course overall size but also the control settings get all whacky
# control settings for auto-scale=1
CONTROL=type:1,wide:1,control-style:,display:Help Desk URL:
# control settings for auto-scale=0
CONTROL=font-size:50%,type:1,wide:1,control-style:,display:Help Desk URL:
this is simply for 1 item i have a entire page using control and wow with auto scaling off its all over the place and with it enabled nothing is readable if its not running on the display it was initially configured for, but it will scale the control items correctly everything else gets messed up then.
10 May, 2022 at 6:13 pm #5239
ok, let me study this for a bit.
12 May, 2022 at 7:36 am #5240
I can’t reproduce your actual setup because I don’t have a monitor with that kind of resolution. However I can sort of see what’s going on. If you up the font-size to give you what you want on the 3000px monitor, you’re expecting the auto-scale to give you the equivalent on the 1920px monitor.
However this is not the purpose of the auto-scale, it’s purpose is purely to account for the Windows magnification setting. In other words, not total pixels across the screen but pixels per inch. This needs to be better documented. Or maybe change the name to better describe what it does.
In another similar case, I recommended some code to set the font-size according to the monitor resolution. This might work for you. I’ll have to look to see how it effects the controls.INI1234567891011121314151617181920[items]BEGIN-ONLOAD# default font sizeSET fontsize=11# get current monitor resolutionMONITOR=set:resx=%4IF=value1:%resx%,comp:eq,value2:1440SET fontsize=8IF=value1:%resx%,comp:eq,value2:1600SET fontsize=9IF=value1:%resx%,comp:eq,value2:1920SET fontsize=11IF=value1:%resx%,comp:eq,value2:2048SET fontsize=12IF=value1:%resx%,comp:eq,value2:3000SET fontsize=20END-ONLOADFONT-SIZE=%fontsize%
- You must be logged in to reply to this topic.