Error getting tags :
error 404Error getting tags :
error 404 screenRect | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
screenRect
Basics
Expander triangle
Type
Function
Syntax
the [working] screenRect[s]
Introduced
1.0
Changed
2.7
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the geometry of screens connected to the computer.
Examples

the screenRect
set the rect of this stack to line 2 of the working screenRects

Additional Comments
Expander triangle

Use the screenRect function to find out the available screen sizes and to scale windows to the size of the screen.

Value:

The screenRect function returns four integers, separated by commas.

The screenRects function returns a return-delimited list of four integers, separated by commas.

Comments:

In its singular form (screenRect) this function returns the virtual co-ordinates of the primary display.

In its plural form (screenRects) this function returns a list containing the virtual co-ordinates of all the screens currently attached to the system. The first line is always that of the primary display, and the order of the rest are in an OS-specific order.

The virtual co-ordinates of a screen a quadruple of four integers specifying the left, top, right and bottom of the rectangle. The right and bottom edges are not included in the screen's area.

Adding the working adjective to either form returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not convered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).

Note: The co-ordinates returned by the screenRect family of functions can be anywhere in the virtual desktop defined by the OS - their values will depend on the user's local configuration. In particular, they can take both positive and negative values.

User Comments
Expander triangle