dxGetCurrentDPI(TComponent) Method
Returns the DPI value at which the specified form or component is displayed.
Declaration
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