Recent

Author Topic: How to disable scaling?  (Read 1361 times)

domasz

  • Hero Member
  • *****
  • Posts: 582
How to disable scaling?
« on: January 29, 2024, 01:49:40 pm »
I want my app to always look like it looks in 96 dpi. So when OS has 150% scaling set it should still display the same as on 100%. Not enlarged and blurry and not with bigger fonts. If I set an element to be 100px wide it must always be 100px wide.

CCRDude

  • Hero Member
  • *****
  • Posts: 614
Re: How to disable scaling?
« Reply #1 on: January 29, 2024, 01:54:10 pm »
Which OS?
On Windows, use the Manifest, which can be created by default settings (DPI Awareness).

domasz

  • Hero Member
  • *****
  • Posts: 582
Re: How to disable scaling?
« Reply #2 on: January 29, 2024, 02:03:15 pm »
On Windows. How to use the Manifest?

wp

  • Hero Member
  • *****
  • Posts: 12860
Re: How to disable scaling?
« Reply #3 on: January 29, 2024, 02:06:06 pm »
In the project options, uncheck "Use LCL scaling" and select "off" in the "DPI awareness" combobox.

lainz

  • Hero Member
  • *****
  • Posts: 4722
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: How to disable scaling?
« Reply #4 on: January 29, 2024, 02:06:27 pm »
Is not possible, at least will be blurry...

Better enable scaling with the manifest, but disable LCL scaling.

domasz

  • Hero Member
  • *****
  • Posts: 582
Re: How to disable scaling?
« Reply #5 on: January 29, 2024, 02:11:17 pm »
Is not possible, at least will be blurry...

Better enable scaling with the manifest, but disable LCL scaling.

That's the right answer, thanks. I just needed to set Font.Size to 9 for every form and it's almost perfect (form titles and menus are still huge).

CCRDude

  • Hero Member
  • *****
  • Posts: 614
Re: How to disable scaling?
« Reply #6 on: January 31, 2024, 09:10:39 am »
Not a technical answer, but still, or even more, important: people who use a scaling of more than 100% most often do this for a reason. One being their bad eyesight.

In the past, accessibility was a feature that needed manual intervention. Since Windows allows scaling, it needs manual intervention to not support accessibility. You don't forget any more to support people with bad eyesight, you actively act against them (some might call this discrimination).

So please, give it a second thought if you really need this approach.

domasz

  • Hero Member
  • *****
  • Posts: 582
Re: How to disable scaling?
« Reply #7 on: January 31, 2024, 09:22:23 am »
That is a very good point but
1) we should blame Microsoft for how shitty they did the scaling. On MacOS it makes more sense
2) this is a multimedia program, rather not for people with bad eyesight

 

TinyPortal © 2005-2018