| WinActivate | Function (ROM Call 0x1)

wingraph.h

void WinActivate (WINDOW *w);

Activates a window.

WinActivate makes the window pointed to by w the current active window. This will cause the following events:

- The currently active window will be deactivated (its border will be changed to a single-line border);
- The border for the window will switch to a double-line border (except in single-border mode, in rounded-border mode or if the window is a full-screen window);
- The graphics system will be reset to the current windows defaults (draw attributes, current (x, y) location, etc.).
- The window will be marked as visible (see WinHide).

See WinOpen for more info.
Note: Because of memory requirements, only the active window may be drawn to. Once a window becomes the active window, it may use any of the window drawing routines. If you try to draw in a non-active window, a garbage may appear on the screen. If no other window overlaps a window (even if there are multiple windows on the screen), then you may write to a non-active window by using WinBegin and WinEnd to bracket the writes.

Uses: DrawWinBorder, FirstWindow, WinClr, WinDeactivate, FontSetSys, UpdateWindows
Used by: cmd_disp, cmd_disphome, cmd_input, cmd_inputstr, cmd_output, cmd_pause, cmd_prompt, cmd_showstat, Dialog, ERD_dialog, ABT_dialog, EV_defaultHandler, handleVarLinkKey, HomeExecute, HelpKeys, ERD_notice, EV_quit