[Lazarus] fpGUI
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Mon Jan 17 14:11:49 CET 2011
Michael Schnell schrieb:
> On 01/16/2011 10:34 PM, Graeme Geldenhuys wrote:
>> Even Lazarus's form designer chokes on differing dpi values.
> What is the dpi value useful for ? If you want to deal with screen dpi,
> you also need to know the physical monitor size and the eye-screen
> distance to do any useful calculations on it.
All that is included in the single dpi value.
But AFAIK (from Windows) the dpi factor only affects font sizes, while
graphics still are bound to the physical screen resolution. That's why
VS measures everything in "twips", not in pixels as Delphi does. On my
CRT monitors I used this Windows model to shrink graphical items down to
a minimum, by specifying a high screen resolution, and then adjusted the
text size for readability, by increasing the dpi value above the 96 dpi
standard. On nowadays digital monitors this is no more an option :-(
Other screen managers (Ubuntu...) may have a different idea of the use
of the dpi value, of course. But all models should result in equivalent
text/graphics proportions, when a document is output to an printer, with
a much higher dpi resolution. This certainly is not the case with
pixel-based coordinates and image sizes in forms, and may explain the
text size jumps as recently reported by Linux users.
DoDi
More information about the Lazarus
mailing list