PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the coordinates of the screen that contains a window. Then, you have the ability to manage the positions or the sizes of windows in a single-screen or multi-screen environment. You can for example find out whether a window exceeds the size of the screen or whether the window is centered in the screen.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
sRect is string = WinScreenRectangle(WIN_Window1, screenWithoutTaskbar)
nYMax is int = ExtractString(sRect, 4)
Syntax
<Result> = WinScreenRectangle([<Window Name> [, <Options>]])
<Result>: Character string
Dimensions of the screen where the window is displayed. These coordinates are returned in the following format:
<X1> + TAB + <Y1> + TAB + <X2> + TAB + <Y2>
  • The (X1, Y1) coordinates correspond to the top left corner of the screen.
  • The (X2, Y2) coordinates correspond to the bottom right corner of the screen.
If 2 screens are used and if the window is displayed on the second screen, the (X1, Y1) coordinates correspond to the coordinates of the second screen (1280, 0 for example).
<Window Name>: Optional character string (with or without quotes)
Name or alias of window to use.
If this parameter is not specified or if it corresponds to an empty string (""), the calling window is used.
The main screen is used if no window is opened.
<Options>: Optional integer constant
Elements taken into account for the size of the screen:
screenWithoutTaskbarIf the taskbar is active on the screen, its size is subtracted.
screenAll
(Default value)
Total size of the screen.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment