In the Display settings of the Control Panel for Vista and Windows-7 you
can set the DPI to 125% or 150% to make the text larger and easier to
read. These custom settings throw off the position and sizes of some
components. So I would like to be able to get the value from the system
and make adjustments in my program in the OnCreate procedures.
Dick.

On 5/15/2011 2:22 PM, Stephen Posey wrote:
I'm thinking probably some combination of the GetDeviceCaps() and 
GetTextMetrics() APIs will do what you want, but I'm having a little trouble 
making sense of exactly what it is you're asking for from your description.

Can you provide some more details on just what it is you're trying to 
accomplish?

Stephen Posey
stephenlpo...@earthlink.net




-----Original Message-----
From: -K2RFP-<rn...@verizon.net>
Sent: May 12, 2011 1:15 PM
To: Delphi-Talk Discussion List<delphi-talk@elists.org>
Subject: DPI Scaling?

Where can I get the DPI or scaling factor that is in use
for the font size used on the screen?

__________________________________________________
Delphi-Talk mailing list ->  Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk
__________________________________________________
Delphi-Talk mailing list ->  Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk


__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to