<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > System functions > System > System.Monitor > (index).WorkArea |
Description
Returns work area (area outside of task bar) on given monitor.
Syntax
workAreaString = System.Monitor(index).WorkArea
Returns
String, in format x,y,width,height
Parameters
Name |
Type |
Optional |
Meaning |
index |
Numeric |
No |
The index is 1 based, number in range 1 - System.Monitor.Count. |
Remarks
Restrictions
Read only.
See also
Examples
uses "Console"
printl "Number of monitors: " + System.Monitor.Count ' Total count
long i
for i = 1 to System.Monitor.Count
printl "Monitor #" + i in 15
printl "Is primary?: " + iif$(System.Monitor(i).IsPrimary, "YES!", "No")
printl "Resolution: " + System.Monitor(i).Resolution ' Usable area for full-screen app
printl "Width: " + System.Monitor(i).Width ' Horizontal resolution
printl "Height: " + System.Monitor(i).Height ' Vertical resolution
printl "Work area: " + System.Monitor(i).WorkArea ' Usable area for app windows
printl
next
waitKey