[DUG] 96DPI and 120DPI
John Bird
johnkbird at paradise.net.nz
Thu Jul 22 00:33:06 NZST 2010
I am trying to figure the implications for Delphi programs, and programs in general, on screens where the screen is set to 120DPI, or other than the standard 96DPI.
1 - Why do some screens get set up that way by network providers? Is it common? I am presuming its either to get better performance out of an older LCD screen or easier to see text on a new large resolution monitor? Do you regard it as OK or not good practice? Is it common enough that we have to cater for it?
2 - Do many general Windows programs have issues with a 120 or 144 DPI setting? Delphi programs?
3 - I have one program that has a reasonable amount of internal settings done to scale the forms to fit available screen resolution - Note I do not use the form align or anchors as I prefer to to keep the horizontal and vertical proportions and expand the form to fit about 3/4 of the desktop, using Form.ScaleBy. This has the advantage of increasing the size of buttons and keeping the relative sizes of everything the same. I also tweak the row heights and font size of grids up by the same factor, all works fine except on 120DPI where it all goes awry mainly with row and font height size in grids, and sometimes the ScaleBy does not happen (I presume its getting values it can't use). and I am not quite sure why. I am detecting the screen.height, screen.width, Screen.PixelsPerInch, and form1.pixelsPerInch so I should be able to get it right.
Maybe someone who knows can shed light on what windows does differently with standard controls when the screen is set to 120DPI
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100722/28440c21/attachment.html
More information about the Delphi
mailing list