PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Managing dual screens
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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:
metCxHScrollWidth of arrow found on an horizontal scrollbar.
metCyHScrollHeight of arrow found on an horizontal scrollbar.
metCxBorderWidth of fixed window border.
metCyBorderHeight of fixed window border.
metCxCursorWidth of the cursor.
metCyCursorHeight of cursor.
metCxFixedFrameWidth of the border when the style of the window is WS_DLGFRAME.
metCyFixedFrameHeight of border when the window style is is WS_DLGFRAME.
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.
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.
metCxSizeFrameWidth of window border that can be modified.
metCySizeFrameHeight of window border that can be modified.
metCxFullScreenWidth of client area in a full-screen window.
metCyFullScreenHeight of the client area in a full-screen window (equivalent to the height of the screen less the height of the title bar).
metCxVThumbWidth of box (in inches) in the horizontal scrollbar.
metCxIconWidth of icons.
metCyIconHeight of icons.
metCxIconSpacingWidth of rectangles used to position the icons one beside another.
metCyIconSpacingHeight of rectangles used to position the icons one beside another.
metCxMinMinimum width of window.
metCyMinMinimum height of window.
metCxMinTrackMinimum width when a window is resized by the user.
metCyMinTrackMinimum height when a window is resized by the user.
metCxScreenWidth of screen.
metCyScreenHeight of screen.
metCxSizeWidth of buttons found in the title bar of a window.
metCySizeHeight of images found in the title bar.
metCxVScrollWidth of image of arrow found on the vertical scrollbar.
metCyVScrollWidth (in pixels) of vertical scrollbars.
metCyCaptionHeight of window title. This height corresponds to the title height plus the height of window border that cannot be resized.
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.
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 popup 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
WINDEVUser code (UMC)

Managing dual screens

Specific Sys functions are used to find out information about the screens used:
Versions 12 and later
SysChangeScreenResolution
New in version 12
SysChangeScreenResolution
SysChangeScreenResolution
Modifies the resolution of a screen.
Versions 12 and later
SysListScreen
New in version 12
SysListScreen
SysListScreen
Returns the list of screens connected to one or more video cards.
Versions 12 and later
SysListScreenResolution
New in version 12
SysListScreenResolution
SysListScreenResolution
Returns the possible resolutions for a screen.
Versions 12 and later
SysListVideoCard
New in version 12
SysListVideoCard
SysListVideoCard
Returns the name of the video cards connected to the current computer.
Versions 12 and later
SysNameMainScreen
New in version 12
SysNameMainScreen
SysNameMainScreen
Returns the name of the main screen for the computer.
Versions 12 and later
SysNumberScreen
New in version 12
SysNumberScreen
SysNumberScreen
Returns the number of screens currently connected to the current computer.
Versions 12 and later
SysScreenResolution
New in version 12
SysScreenResolution
SysScreenResolution
Returns 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 : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment