ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Managing dual screens
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysMetric (Function)
In french: SysMétrique
Returns the resolution of a specific element.
Example
// Width of the cursor
ResMetric = SysMetric(metCxCursor)
Syntax
<Result> = SysMetric(<Element>)
<Result>: Integer
Resolution of the specified element.
<Element>: Integer constant
Specifies the element for which the resolution must be defined:
metCxBorderWidth of fixed window border.
metCxCursorWidth of the cursor.
metCxDoubleClkWidth of rectangle surrounding the location of first click during a double click. The second click must occur in the same area in order for the system to detect a double click.
metCxFixedFrameWidth of the border when the style of the window is WS_DLGFRAME.
metCxFullScreenWidth of client area in a full-screen window.
metCxHScrollWidth of arrow found on an horizontal scrollbar.
metCxIconWidth of icons.
metCxIconSpacingWidth of rectangles used to position the icons one beside another.
metCxMinMinimum width of window.
metCxMinTrackMinimum width when a window is resized by the user.
metCxScreenWidth of screen.
metCxSizeWidth of buttons found in the title bar of a window.
metCxSizeFrameWidth of window border that can be modified.
metCxVScrollWidth of image of arrow found on the vertical scrollbar.
metCxVThumbWidth of box (in inches) in the horizontal scrollbar.
metCyBorderHeight of fixed window border.
metCyCaptionHeight of window title. This height corresponds to the title height plus the height of window border that cannot be resized.
metCyCursorHeight of cursor.
metCyDoubleClkHeight of rectangle surrounding the location of first click during a double click. The second click must occur in the same area in order for the system to detect a double click.
metCyFixedFrameHeight of border when the window style is is WS_DLGFRAME.
metCyFullScreenHeight of the client area in a full-screen window (equivalent to the height of the screen less the height of the title bar).
metCyHScrollHeight of arrow found on an horizontal scrollbar.
metCyIconHeight of icons.
metCyIconSpacingHeight of rectangles used to position the icons one beside another.
metCyKanjiHeight of "Kanji" window.
metCyMenuHeight of bar for the drop-down menu. This height corresponds to the menu height plus the height of window border that cannot be resized.
metCyMinMinimum height of window.
metCyMinTrackMinimum height when a window is resized by the user.
metCyScreenHeight of screen.
metCySizeHeight of images found in the title bar.
metCySizeFrameHeight of window border that can be modified.
metCyVScrollWidth (in pixels) of vertical scrollbars.
metCyVThumbHeight of box (in inches) in the horizontal scrollbar.
metDBCSEnabledDifferent from zero if the current Windows version is using characters coded on 2 bits ; otherwise, returns zero.
metMenuDropAlignmentMenu for aligning "Popups". If this value is equal to zero, the left side of the context menu is aligned with the left side of the corresponding object in the menu bar. If this value is different from zero, the left side of the "popup" menu is aligned with the right side of the corresponding object in the menu bar.
metMousePresentDifferent from zero if the mouse driver is installed.
metPenWindowsHandle (identifier) of "Pen Windows" DLL if this handle is installed.
metSwapButtonDifferent from zero if the left and right mouse buttons are reversed.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)

Managing dual screens

Specific Sys functions are used to find out information about the screens used:
SysChangeScreenResolutionModifies the resolution of a screen.
SysListScreenReturns the list of screens connected to one or more video cards.
SysListScreenResolutionReturns the possible resolutions for a screen.
SysListVideoCardReturns the name of the video cards connected to the current computer.
SysNameMainScreenReturns the name of the main screen for the computer.
SysNumberScreenReturns the number of screens currently connected to the current computer.
SysScreenResolutionReturns the resolution of a screen.
Related Examples:
The SysMetric function Unit examples (WINDEV): The SysMetric function
[ + ] Using SysMetric.
This function is used to retrieve a set of dimensions that are configured at system level.
For example, it allows you to find out the height of the menu bar in the applications, ...
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help