dxGetFormDPI(TCustomForm) Method
In This Article
Returns the specified form’s DPI.
#Declaration
Delphi
function dxGetFormDPI(AForm: TCustomForm): Integer;
#Parameters
Name | Type |
---|---|
AForm | TCustom |
#Returns
Type |
---|
Integer |
#Remarks
Call this global function to obtain the DPI value of the monitor that displays the form passed as the AForm parameter. If the operating system supports per-monitor DPI awareness functionality, the dxGetFormDPI function returns DPI of the monitor that currently displays more than a half of the form; otherwise, returns the system DPI.
See Also