Recent

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

eny

  • Hero Member
  • *****
  • Posts: 1593
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 1.8.0 'stable' (#56594 win64) unless specified otherwise...

howardpc

  • Hero Member
  • *****
  • Posts: 3444
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: 1593
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 1.8.0 'stable' (#56594 win64) unless specified otherwise...

lainz

  • Hero Member
  • *****
  • Posts: 3593
    • Lainz
Re: Form scaling and font problem
« Reply #3 on: June 25, 2015, 05:43:29 am »
https://lainz.github.io - My Website
https://lazpaint.github.io/ - LazPaint Downloads

 

TinyPortal © 2005-2018