messages

WindowKeyUp  ( window, WindowKeyUp, x, y, state, time, 0, focusGrid )

A WindowKeyUp message is added to the message queue when the system detects a keyboard key up event.

window contains the window number of the currently selected window, which means the window with keyboard focus.

x,y contain the position of the mouse cursor in the local coordinates of focusGrid when the WindowKeyDown event was detected.

state identifies the released key and gives the state of the keyboard mode-keys (Alt-Control-Shift) when the WindowKeyUp event was detected.

time contains the value of the system millisecond time when the WindowKeyUp event was detected.

In some programs, individual grids need to receive key down messages. Furthermore, windows can contain several grids capable of accepting keyboard focus. In these cases, window functions keep track of the grid that most recently had keyboard focus in each window and send it a KeyUp message when it receives WindowKeyUp .

WindowMaximized  ( window, WindowMaximized, 0, 0, 0, 0, 0, 0 )

A WindowMaximized message is added to the message queue whenever a window is maximized.

Windows are maximized when users click on the maximize button in the window frame, and when programs call XgrMaximizeWindow() . 

WindowMinimized  ( window, WindowMinimized, 0, 0, 0, 0, 0, 0 )

A WindowMinimized message is added to the message queue when a window is minimized.

Windows are minimized when users click on the minimize button in the window frame, and when programs call XgrMinimizeWindow() . 

WindowRedraw  ( window, WindowRedraw, xWin, yWin, width, height, 0, 0 )

A WindowRedraw message is added to the message queue when all or part of window is uncovered, displayed for the first time, or displayed after being hidden or minimized.

xWin,yWin,width,height defines the smallest rectangle that contains all portions of the window that have been exposed and need to be redrawn to restore the visible part of window . 

If width<=0 or height<=0 , all grids in window need redrawing.

WindowResized  ( window, WindowResized, xDisp, yDisp, width, height, 0, 0 )

A WindowResized message is added to the message queue when the position and/or size of a window is changed. Users drag window resize grips, and programs call XgrSetWindowPositionAndSize() . 

xDisp,yDisp contain the display coordinates of the window, while width,height contain the width and height of the window in pixels.

WindowSelected  ( window, WindowSelected, 0, 0, 0, 0, 0, 0 )

A WindowSelected message is added to the message queue when a window is selected. Windows stay selected until another is selected. Users select a window when they point at it with the mouse cursor and press a mouse button. Programs select a window by calling XgrSetSelectedWindow() or XgrDisplayWindow() . 

Selecting a window deselects the currently selected window, because only one window can be selected at a time. Selected windows are recognizable on the display because their title-bar and frame are emphasized, usually by a colorful background color. The title-bar and frame of deselected windows are deemphasized.

To select a window is to give it keyboard focus. Whenever GraphicsDesigner detects a keyboard event, adds a keyboard message for the selected window to the message queue.