DesktopScaledX()

Syntax

Result = DesktopScaledX(Value)
Description
Returns the scaled value according to current display DPI on 'x' axis. This is mostly useful to calculate real pixel position independently of the display DPI.

Parameters

Value The value to use.

Return value

Returns the scaled value according to current display DPI on 'x' axis. For example, on a display with a 125% DPI applied, a value of 100 will result to 125.

Remarks

The application needs to be compiled with the 'DPI Aware' switch to have this command returning scaled DPI value. If not, the result will be always be the same as 'Value' parameter.

Example

  Debug "Desktop DPI 'x' scaled value of 100: " + DesktopScaledX(100)

See Also

DesktopResolutionX(), DesktopResolutionY(), DesktopScaledY(), DesktopUnscaledX(), DesktopUnscaledY()

Supported OS

All

<- DesktopResolutionY() - Desktop Index - DesktopScaledY() ->