Skip to main content

dxGetFormDPI(TCustomForm) Method

Returns the specified form’s DPI.

Declaration

function dxGetFormDPI(AForm: TCustomForm): Integer;

Parameters

Name Type
AForm TCustomForm

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