[DUG] Large Fonts/DPI
John Bird
johnkbird at paradise.net.nz
Wed Aug 9 12:46:12 NZST 2006
Its not a major issue in that I have it all working quite nicely apart from
the font size in the grids, and I am already setting the font sizes and
types manually in the programs anyway (these are user settable options),
also I am kind of curious to learn what the issues really are...
Also I like doing as much as possible with vanilla Delphi, but also its
tedious to reinvent the wheel....any recommendations on good resize
components?
John
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Laurence Bevan
Sent: Wednesday, 9 August 2006 12:14 p.m.
To: delphi at ns3.123.co.nz
Subject: RE: [DUG] Large Fonts/DPI
Hi John,
Yes the PixelsPerInch refers to a form property, and this code should be in
the FormCreate. This code doesn't detect, it purely says if the form
pixelsperinch is not the same as the screen's then scale by the factor of
screenpixels to formpixels (e.g. 120 / 96).
If this is a major issue for you then I suggest you save yourself time and
grief by buying one of the components available. There are so many issues
around screen resolution and normal/large fonts that you'll send weeks
trying to get your head around it (much easier to drop a component in that
fixes it all).
Laurence Bevan
----- Original Message -----
From: John Bird
To: "'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
Sent: Wed, 9 Aug 2006 12:04:03 +1200
Subject: RE: [DUG] Large Fonts/DPI
In your code below the second PixelsPerInch - is that a form property?
Eg if Screen.PixelsPerInch <> form1.PixelsPerInch then
Because I tried to use this code above to detect when a user has a non 96PPI
screen, and it didn't work. I am guessing the reason is that I let the
application create the forms on startup and when I test using this code the
form is already created and the test above then returns true (they are
equal) - but I am guessing....
John
__________ NOD32 1.1461 (20060329) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
More information about the Delphi
mailing list