# Not respecting Windows DPI setting 2016r1.1

**URL:** <https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476>\
**Category:** General\
**Created:** [May 17, 2016, 9:45pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476 "2016-05-17T21:45:17Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [May 19, 2016, 6:45pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/21 "2016-05-19T18:45:01Z")

</div>

Hmm, let me grab a win 7 install off msdn a mo and run some tests.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [May 19, 2016, 6:48pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/22 "2016-05-19T18:48:38Z")

</div>

> [@267008:@Derek DiBenedetto](#):
>
> I’ve confirmed that Visual Basic 6 has the same issue, but ONLY with Windows 7, for the most part anyway. Just plain annoying.

That is because Windows 7 scales text without taking into account the app layout. I guess Microsoft assumed at the time developers would adjust to the scaling.

I gave up trying to work around that after trying several things in RubberViews. It is simply impossible to fit every situation automatically.

---

<div class="post-metadata">

**Author:** ![Derek\_DiBenedetto](https://forum.xojo.com/user_avatar/forum.xojo.com/derek_dibenedetto/32/17867_2.png) [@Derek\_DiBenedetto](https://forum.xojo.com/u/Derek_DiBenedetto)\
**Post date:** [May 19, 2016, 6:52pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/23 "2016-05-19T18:52:49Z")

</div>

[quote=267011:@Michel Bujardet]That is because Windows 7 scales text without taking into account the app layout. I guess Microsoft assumed at the time developers would adjust to the scaling.

I gave up trying to work around that after trying several things in RubberViews. It is simply impossible to fit every situation automatically.[/quote]

Yep, I gave up too. For some screens I just manually make the label boundry sizes larger to account for it where I can, and your [RubberViews](https://forum.xojo.com/23973-elastic-window-direct-drop-in-replacement-with-rubberviews) (a great product by the way) does the rest generally as far as graphics.

I do write games, so I figure most will migrate to Windows 8.1 or Windows 10 eventually, and the issue won’t be a huge deal in the long term as Win7 ages and fades out.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [May 19, 2016, 6:59pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/24 "2016-05-19T18:59:49Z")

</div>

Windows 8-10 indeed does a great job at scaling, even somewhat better than Retina, as it allows values between 1x and 2x.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [May 21, 2016, 2:58pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/25 "2016-05-21T14:58:54Z")

</div>

Ok, I’ve finally got Win 7 x64 installed in a VM, don’t start me off on windows update problems 😉

> [@266558:@Thomas Pittman](#):
>
> We cannot use the HiDPI setting turned ON. There are two many bugs.

Thomas, or anyone, could you give me a quick example of a bug with HiDPI ON in Win7 so I can tweak a few things and see if I can get around them?

---

<div class="post-metadata">

**Author:** ![Sipko\_Nobel](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@Sipko\_Nobel](https://forum.xojo.com/u/Sipko_Nobel)\
**Post date:** [June 28, 2016, 4:27pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/26 "2016-06-28T16:27:54Z")

</div>

had the same issues. (W7/64)  
went back to previous version ☹

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 28, 2016, 7:51pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/27 "2016-06-28T19:51:12Z")

</div>

Windows 7 has a very different way to treat HiDPI than Windows 8.x and 10.

Since obviously the present version of Xojo apps will most probably be used more and more by the new systems, it would make sense for it to focus on them.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 28, 2016, 7:56pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/28 "2016-06-28T19:56:51Z")

</div>

> [@266752:@Jürg Otter](#):
>
> Is it somehow possible to read that setting from the OS?

There must exist register keys.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:19pm UTC](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476/29 "2020-10-29T18:19:24Z")

</div>



[Previous page](https://forum.xojo.com/t/not-respecting-windows-dpi-setting-2016r1-1/31476.md?page=1)
