www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: GetScreenDPIRatio

Previous  Top  Next  


Prototype: (),Real

 

ReturnsRatio between 96 and the Screen DPI.

 

This method returns the ratio between a screen using 96DPI (normal font size) and the current screen DPI as returned by GetScreenDPI.  This can be useful to scale controls up when designing on windows with large font settings.  In order to scale down, use GetScreenBaseDPIRatio.

 

Example:

 

ITW  ITWindowsClass

Code

Message('Screen DPI Ratio: ' & ITW.GetScreenDPIRatio())

 

See also:

GetScreenDPI

GetScreenBaseDPIRatio

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getscreendpiratio_window.htm