guides:programming:programmers_reference_manual:dpi_property_window

DPI property (Window)

Returns the DPI (dots-per-inch) setting for the window.

This is an @Fm-delimited array containing two values: The horizontal (x) DPI and the vertical (y) DPI.

<1> X DPI (horizontal)

<2> Y DPI (vertical)

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoNoNo

Beginning with Windows 8.1 individual monitors can have their own DPI settings. This property returns the DPI for the monitor that the window is currently displayed on, or that the majority of the window is displayed on if using more than one monitor. Prior to this the window DPI is always the same as the SYSTEM DPI property.

The window DPI is combined with the SCALEFACTOR property when calculating scaling attributes.

 
// Get the window DPI setting  

   dpiXY = Get_Property ( @Window, "DPI" )
 
 
 

SYSTEM DPI property, DPISCALING property, SCALEFACTOR property.

  • guides/programming/programmers_reference_manual/dpi_property_window.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1