Back to Devexpress

dxGetSystemMetrics(Integer,TdxScaleFactor) Method

vcl-dxdpiawareutils-dot-dxgetsystemmetrics-x28-b8de7833-x29.md

latest1023 B
Original Source

dxGetSystemMetrics(Integer,TdxScaleFactor) Method

Returns the specified system metric or configuration setting (in pixels).

Declaration

delphi
function dxGetSystemMetrics(AIndex: Integer; AScaleFactor: TdxScaleFactor = nil): Integer;

Parameters

NameType
AIndexInteger
AScaleFactorTdxScaleFactor

Returns

Type
Integer

Remarks

Call this global function to obtain linear sizes of the operating system-provided UI elements and non-client window areas (such as a caption) multiplied by the scale factor passed as the optional AScaleFactor parameter. The dxGetSystemMetrics function works identically to the Windows API GetSystemMetrics function if you omit the scale factor.

See Also

dxDPIAwareUtils Unit