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

dxGetCurrentDPI(TComponent) Method

Returns the DPI value at which the specified form or component is displayed.

#Declaration

Delphi
function dxGetCurrentDPI(AComponent: TComponent): Integer;

#Parameters

Name Type
AComponent TComponent

#Returns

Type
Integer

#Remarks

A form can be displayed across several monitors simultaneously. However, only the current monitor’s DPI value is used to calculate the scale factor applied to the form and its components. The current monitor displays the majority of the form. Call the dxGetCurrentDPI function to obtain the current monitor’s DPI value for the form or component passed as the AComponent parameter.

See Also