|
Previous Top Next |
Prototype: | (Long pFEQ, <Long pDesignDPI>) |
pPFEQ | Control Field EQuate label |
pDesignDPI | Dots 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: