Back to Devexpress

dxGetFormDPI(TCustomForm) Method

vcl-dxdpiawareutils-dot-dxgetformdpi-x28-1789e991-x29.md

latest1.2 KB
Original Source

dxGetFormDPI(TCustomForm) Method

Returns the specified form’s DPI.

Declaration

delphi
function dxGetFormDPI(AForm: TCustomForm): Integer;

Parameters

NameType
AFormTCustomForm

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

dxDPIAwareUtils.dxGetCurrentDPI

dxDPIAwareUtils.dxGetDesktopDPI

dxDPIAwareUtils.dxGetMonitorDPI

dxDPIAwareUtils.dxGetSystemDPI

dxDPIAwareUtils Unit