guides:oi10:presentation_server:metrics_property_system

METRICS property (System)

Returns a specified Windows SystemMetrics value.

A numeric value containing the requested Windows SystemMetrics data.

Index Value

This should contain the numeric ID of the SystemMetrics value to retrieve. These IDs are defined in the MSWIN_SYSTEMMETRIC_EQUATES insert record.

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetYesNoNo

This property uses the GetSystemMetrics Windows API function internally, so please refer to the documentation on the Microsoft website for further information.

Please be aware that values returned via this function are always scaled to the System DPI (i.e. the DPI of the primary monitor at logon).

 
// Example - Get the height of a window caption

   

   $insert MsWin_SystemMetric_Equates

   

   CaptionHeight = Get_Property( "SYSTEM", "METRICS", SM_CYCAPTION$ )

   

   // Example - check if we're running in Remote Desktop

   

   IsRDP = Get_Property( "SYSTEM", "METRICS", SM_REMOTESESSION$ )
 
 
 

N/A

  • guides/oi10/presentation_server/metrics_property_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1