Recent

Author Topic: Scaling of forms not correct in Windows?  (Read 1157 times)

stephanweber

  • Jr. Member
  • **
  • Posts: 55
Scaling of forms not correct in Windows?
« on: May 04, 2022, 09:01:19 pm »
Hi,

I have now a new 4K monitor, and normally I am using a scale factor for Windows10 of 150%, so that the fonts are not becoming too small.

However, whatever I do in Lazarus, the scaling looks inconsistant. How can I influence this. The property checkbox " scaling" has no visible impact.

In detail: During construction, I see small fonts and all components looks as they should. But in execution the windo is larger, and many elements are now too large, so that they overlap.
I see this problem mainly in the main window.

Can anybody help?

Bye Stephan

paweld

  • Hero Member
  • *****
  • Posts: 1419
Re: Scaling of forms not correct in Windows?
« Reply #1 on: May 04, 2022, 09:17:28 pm »
Set the DesignTimePPI property of the form to 144 - in the object inspector
Best regards / Pozdrawiam
paweld

stephanweber

  • Jr. Member
  • **
  • Posts: 55
Re: Scaling of forms not correct in Windows?
« Reply #2 on: February 15, 2024, 10:58:36 am »
Thanks, but at least my my current projects I use 144 anyway (looks like the default because I never touched it).

Bye Stephan

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Scaling of forms not correct in Windows?
« Reply #3 on: February 15, 2024, 11:10:00 am »
Have you touched "force DPI scaling" option at designtime (in IDE options/form editor) ?

In case you haven't looked at it then more information can also be found at wiki High DPI
« Last Edit: February 15, 2024, 11:19:15 am by TRon »
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 17158
  • Ceterum censeo Trump esse delendam
Re: Scaling of forms not correct in Windows?
« Reply #4 on: February 15, 2024, 11:15:40 am »
You should use the High DPI feature for 4k monitors.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

wp

  • Hero Member
  • *****
  • Posts: 12864
Re: Scaling of forms not correct in Windows?
« Reply #5 on: February 15, 2024, 11:35:08 am »
What is your Lazarus version? Too old version do not support or not automatically enable LCLScaling.

 

TinyPortal © 2005-2018