Recent

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

stephanweber

  • New Member
  • *
  • Posts: 46
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: 966
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

  • New Member
  • *
  • Posts: 46
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: 2401
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 »

Thaddy

  • Hero Member
  • *****
  • Posts: 14166
  • Probably until I exterminate Putin.
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.
Specialize a type, not a var.

wp

  • Hero Member
  • *****
  • Posts: 11830
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