PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Managing the dual screens
  • Operating mode in GO mode and at run time
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.
Windows Mobile This constant is not available.
metCySizeFrameHeight of window border that can be modified.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
metCyMinMinimum height of window.
Windows Mobile This constant is not available.
metCxMinTrackMinimum width when a window is resized by the user.
Windows Mobile This constant is not available.
metCyMinTrackMinimum height when a window is resized by the user.
Windows Mobile This constant is not available.
metCxScreenWidth of screen.
metCyScreenHeight of screen.
metCxSizeWidth of buttons found in the title bar of a window.
Windows Mobile This constant is not available.
metCySizeHeight of images found in the title bar.
Windows Mobile This constant is not available.
metCxVScrollWidth of image of arrow found on the vertical scrollbar.
Windows Mobile This constant is not available.
metCyVScrollWidth (in pixels) of vertical scrollbars.
metCyCaptionHeight of window title. This height corresponds to the height of the title plus the height of the window border that cannot be resized.
metCyKanjiHeight of "Kanji" window.
Windows Mobile This constant is not available.
metCyMenuHeight of bar for the drop-down menu. This height corresponds to the height of the menu plus the height of the 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.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
metMousePresentDifferent from zero if the mouse driver is installed.
metPenWindowsHandle (identifier) of "Pen Windows" DLL if this handle is installed.
Windows Mobile This constant is not available.
metSwapButtonDifferent from zero if the left and right mouse buttons are reversed.
Windows Mobile This constant is not available.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)

Managing the 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.
Windows Mobile

Operating mode in GO mode and at run time

In GO mode (simulation on the development computer), the window must be found on the development computer.
At run time, the window must be found on the Pocket PC.
The differences between GO mode (simulator) and real use are presented in Differences between GO mode and real use.
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, ...
Components
WINDEVReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment