version 6.0
Find window (left; top{; windowPart}) WinRef
Parameter | Type | Description | |
left | Number | Global left coordinate | |
top | Number | Global top coordinate | |
windowPart | Number | Window part ID number | |
Function result | WinRef | Window reference number |
Description
The Find window command returns (if any) the reference number of the first window "touched" by the point whose coordinates passed in left and top.
The coordinates must be expressed relative to the top left corner of the contents area of the application window (Windows) or to the main screen (Macintosh).
If you specify the windowPart parameter, whether or not a window has been found, the parameter returns one of the following values:
Constants | Type | Value | Platform |
In menu bar | Long Integer | 1 | Macintosh only |
In system window | Long Integer | 2 | Macintosh only |
In contents | Long Integer | 3 | Windows or Macintosh |
In drag | Long Integer | 4 | Macintosh only |
In grow | Long Integer | 5 | Macintosh only |
In go away | Long Integer | 6 | Macintosh only |
In zoom box | Long Integer | 7 | Macintosh only |
See Also
Frontmost window, Next window.