GetWindowState

Syntax:

GetWindowState()

Return:

An object containing information about the current window size, position and state.

The members of the returned object are:

x – The screen position of the left edge of the page view.

y – The screen position of the top edge of the page view.

width – The width of the page view.

height – The height of the page view. This does not include any window frame or title bar.

Note:
The four elements above do not include the widths of any window frame or title bar. They reflect the size and position of the page view within the window itself.

wnd_x – The screen position of the left edge of the window.

wnd_y – The screen position of the top edge of the window.

wnd_width – The width of the window.

wnd_height – The height of the window.

Note:

The four elements above do include the widths of any window frame or title bar. They reflect the size and position of the window itself.

bMaximized – true if the window is currently maximized, false if not.

bMinimized – true if the window is currently minimized, false if not.

Note:

All positions are given in screen co-ordinates, not page coordinates.

Remarks:

This function obtains the current position, size and state of the window the view is being displayed in.

image\Script_Button.jpgExamples