set_window ( : : WindowID : )

Activating of a window.

set_window sets the current output resp. input window. The logical window number WindowID which you may obtain by calling get_window serves as an input. If you open a new window (open_window or open_textwindow), then it becomes automatically the current output window (calling set_window is not necessary).

If you open several windows at the same time it is reasonable after opening to request the logical window number. Then it is possible to reactivate the appropriate window later on by calling set_window. If you switch between windows, then their assigned output parameters (set_color, set_draw, etc.) are not overwritten. These are going to be active simultaneously while switching. Otherwise they sleep until the window is reactivated.


Parameters

WindowID (input_control)
window.id -> integer
Logical window number.


Result

If the window number is correct, then set_window returns TRUE. If necessary an exception is raised.


Possible Predecessors

open_window, open_textwindow


See also

get_window, open_window, open_textwindow



Copyright © 1996-1997 MVTec Software GmbH