Recent

Author Topic: Form scaling and font problem  (Read 8695 times)

eny

  • Hero Member
  • *****
  • Posts: 1634
Form scaling and font problem
« on: March 07, 2014, 05:15:17 pm »
When I compile and run programs on Win7/Win8, the default font is 'bold' and the form size is not the design time size.
See image: the back window is the form editor and the front window is the running application. Clearly it is visible that the form has changed size and the main menu font is weird.

Any suggestions how to tweak/fix this?
(XP works fine.)
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Form scaling and font problem
« Reply #1 on: March 07, 2014, 09:10:20 pm »
Presumably you have a manifest to enable themes?
In your Project Options (Application page) is the "Enabled DPI Awareness (for Vista+)" checkbox checked? Does altering this setting make any difference?

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Form scaling and font problem
« Reply #2 on: March 07, 2014, 10:24:20 pm »
Unfortunately no... neither setting fixes the problem.
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Form scaling and font problem
« Reply #3 on: June 25, 2015, 05:43:29 am »

 

TinyPortal © 2005-2018