window.getSize
| Syntax |
window.getSize (title, widthAddr, heightAddr)
|
| Params |
title is the name of a window.
widthAddr is the Object Database location where you wish the window's width to be stored.
heightAddr is the Object Database location where you wish the window's height to be stored.
|
| Action |
Gets the size of a window.
|
| Returns |
True if the window is open and widthAddr and heightAddr are set, false otherwise.
|
| Examples |
window.getSize (window.frontmost (), @h, @v);
point.set (h, v)
» 402,200
Open the examples window. Now type and execute:
window.getSize (window.frontMost (), @h, @v);
msg (h + "pixels by " + v + " pixels.")
» 363 pixels by 46 pixels.
The return value displays in the About Frontier window.
|
| See Also |
window.setSize
window.getPosition
|
|