Skip to main content

dxGetSystemMetrics(Integer,TdxScaleFactor) Method

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

Declaration

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

Parameters

Name Type
AIndex Integer
AScaleFactor TdxScaleFactor

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