* * *

Author Topic: 4k video laptop won't produce forms in app the same size as developed in the IDE  (Read 1673 times)

cletsche43

  • Newbie
  • Posts: 3
I just bought an HP SPECTRE 360 with a 4k video card.  My screen resolution is 3840 by 2160, so when I design forms at the size I want them, with the size fonts I want, the come out about 4 to 8 times larger when the app is compiled and run.  I have tried changing my screen resolutions to lower settings, but nothing works.  Is there a fix for this problem, or will I not be able to use Lazarus on my new computer?  Please help.  This has to be a common problem.

Thanks,
Cary

Pascal

  • Hero Member
  • *****
  • Posts: 783
Try checking "use LCL scaling (Hi-DPI)" in project options.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64 (1803)

Thaddy

  • Hero Member
  • *****
  • Posts: 7105
You need at least Laz 1.8.2 for that to work and there are improvements in trunk.
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

cletsche43

  • Newbie
  • Posts: 3
I have that version of Lazarus.  What do you mean by "the trunk"?
Cary

cletsche43

  • Newbie
  • Posts: 3
Thanks PASCAL,

That sort of worked.  I had to change the Font size on everything in all my forms to make it look correct.  But that did not work for the Main Form of my program.  The fonts did not change at all.  I had to choose a font size of 30 to make it look like 10.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus