Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetFormDPI(TCustomForm) Method

Returns the specified form’s DPI.

#Declaration

Delphi
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