activateWindow()
You can use the consoleLib.activateWindow() system function to make the specified window the active window. The activeWindow consoleLib variable is updated accordingly.
Syntax
consoleLib.activateWindow(window1 Window in)
- window1
- The name of a window variable (as opposed to the value of the name property, if used) to make active.
Example
In the
following example, the active window changes back and forth between form_1_Window and form_2_Window.
myPrompt Prompt {
message="press any key to continue...",
isChar=yes
};
form_1_Window WINDOW {
name="CustomerWindow",
position = [7,7],
size = [15,60],
hasborder=yes
};
openWindow(form_1_Window); // form_1_Window now active
form_2_Window WINDOW {
name="OrderWindow",
position = [2,2],
size = [15,60],
hasborder=yes
};
openWindow(form_2_Window); // form_2_Window now active
displayForm( myForm );
activateWindow(form_1_Window); // make form_1_Window active again
openUI
myPrompt
bind i
end;
activateWindowByName("OrderWindow"); // back to form_2_Window