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

Windows Class: PlaceControlForDPI

Previous  Top  Next  


Prototype: (Long pFEQ, <Long pDesignDPI>)

 

pPFEQControl Field EQuate label
pDesignDPIDots Per Inch resolution of the machine used to design the window/control

 

 

This method attempts to resize a control based on the original DPI information (if any) or the DPI ratio of the machine it is running on.  For example if a control is designed in 120DPI resolution and is being run on a computer with 96DPI resolution, the control may need to be scaled down.  This mostly applies to image controls that can look very bad if they are being displayed in a different resolution than they were designed for. 

 

Example:

 

ITW  ITWindowsClass

Code

ITW.PlaceControlForDPI(?Image1,96) !! Window designed in 96 DPI.

ITW.PlaceControlForDPI(?Image2,120) !! Window designed in 120 DPI.

 

 

See also:

GetScreenDPI

GetScreenDPIRatio

 

 

 



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