Back to Devexpress

dxSetProcessDpiAwareness(TdxProcessDpiAwareness) Method

vcl-dxdpiawareutils-dot-dxsetprocessdpiawareness-x28-a5ae50a6-x29.md

latest1.1 KB
Original Source

dxSetProcessDpiAwareness(TdxProcessDpiAwareness) Method

Enables the specified DPI awareness mode for the current process.

Declaration

delphi
function dxSetProcessDpiAwareness(AValue: TdxProcessDpiAwareness): Boolean;

Parameters

NameTypeDescription
AValueTdxProcessDpiAwareness

Specifies the target DPI awareness mode.

|

Returns

TypeDescription
Boolean

True if the DPI awareness mode change operation is successful; otherwise, False.

|

Remarks

Warning

Do not call the dxSetProcessDpiAwareness function in your application. Instead, enable the required DPI awareness mode in RAD Studio project settings as described in the following help topic: High DPI and Graphics.

See Also

dxDPIAwareUtils.dxIsProcessDPIAware Function

dxDPIAwareUtils Unit