Skip to main content
How Can We Help?
< All Topics
Print

WINDOW STATUS

Captures and updates the status of an open window.

Syntax

WINDOW STATUS [window]

Parameters

windowwhere window can be:
name: The name of an open window. The software looks up name in the currently accessed directories in the usual way. A compiled command using name contains the unambiguous name of the window (including a reference to an application directory) that was found at compile time.

(expr): 
A character string, or an expression that evaluates to a character string, that is to be used at run time as a window object name. The parentheses must be entered. A compiled command using (expr) can refer to many windows, at the risk of encountering an ambiguous window name (i.e., no directory specified when versions of the window are available in two or more directories).
If neither name nor (expr) is specified, the current window is assumed.

Comments

WINDOW STATUS gets the current status of an open window and updates the structure ThisWindow. This is particularly useful when the end user moves and/or resizes a window without program control.

Example

window open wContracts
form display input
...
window status
list ThisWindow
let MyWidth = ThisWindow.WindowWidth

After an event has been generated by the FORM INPUT, the size and position (among other information) can be retrieved by the means of the WINDOW STATUS for later usage with the structure ThisWindow.

window open AnyWindow maximize
window status
list ThisWindow
let MyScreenWidth = ThisWindow.WindowWidth

The attributes ThisWindow.WindowWidth and ThisWindow.WindowHeight provide the maximum dimensions of the screen.

See Also

ThisWindow

WINDOW DEACTIVATE

WINDOW DISPLAY

WINDOW MOVE

WINDOW SCROLL

WINDOW SET

WINDOW SIZE

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish