[Lazarus] Controlling DPI

Michael Van Canneyt michael at freepascal.org
Sat Mar 28 13:50:15 CET 2009



On Sat, 28 Mar 2009, Graeme Geldenhuys wrote:

> 2009/3/28 ik <idokan at gmail.com>:
> >
> > How can I control the DPI of a Lazarus based application regardless of the
> > environment (gnome/kde etc..) DPI ?
> 
> Umm, good question. I thought there was a Screen.DPI or
> Screen.DotsPerInch setting, but I can't find it. Maybe I'm getting
> confused with Kylix.

it is

Screen.PixelsPerInch

But this is read-only. For the rest, the answer depends entirely on what
you want to do.

Michael.



More information about the Lazarus mailing list