Skip to main content

dxSetProcessDpiAwareness(TdxProcessDpiAwareness) Method

Enables the specified DPI awareness mode for the current process.

Declaration

function dxSetProcessDpiAwareness(AValue: TdxProcessDpiAwareness): Boolean;

Parameters

Name Type
AValue TdxProcessDpiAwareness

Returns

Type
Boolean

Remarks

Add the dpiAware element to the application manifest and specify the element’s state corresponding to the required DPI awareness mode instead of calling the dxSetProcessDpiAwareness global function:

The dpiAware element state

Description

Process DPI Awareness Mode

The element is absent or contains “false”

The current process is DPI-unaware.

pdaUnaware

The element contains “true”

The current process is system DPI-aware.

pdaSystemDpiAware

Contains “true/pm”

The current process is:

  • Per-monitor DPI-aware in Microsoft Windows® 8.1 and Windows® 10.

  • System DPI-aware in Microsoft Windows® XP, Windows® Vista, Windows® 7 and 8.

pdaPerMonitorDpiAware

Contains “per monitor”

The current process is:

  • DPI-unaware in Microsoft Windows® XP, Windows® Vista, Windows® 7, and 8.

  • Per-monitor DPI-aware (v1) in Microsoft Windows® 8.1 and 10 (prior to v1703 Creators Update).

pdaPerMonitorDpiAware

The current process is per-monitor DPI-aware (v2) in Microsoft Windows® 10 since Creators Update (build 1703).

pdaPerMonitorDpiAwareV2

Refer to the DevExpress Manifest for Per-Monitor DPI-Aware VCL Applications and Enabling DPI Awareness in the Application Manifest topics for detailed information on adding DPI awareness to your application.

See Also