
(B) VGA window display in the main task.
The procedures to display VGA window in the main task is basically same as
in the window task. There are some differences as follows.
(1) Once "vwin_open()" function is called, all of the following output
are displayed in the VGA window. (both character and graphics)
After closing all VGA window, output is displayed to the base screen
again.
(2) Various settings about display are taken over between the base screen
and the VGA window as they are. Generally, it is necessary to re-
initialize the display environment after changing display between the
base screen and the VGA winodw. Call "_setvideomode()" function after
opening the VGA window, "crt_setmode()" and "_setvideomode()"
functions after returning the base window from the VGA window.
(3) The opened VGA window is still displayed as it is even if the base
screen is changed to another screen (CNC screen, etc.). It is im-
possible to control the VGA window on the CNC screen by the main task.
So, it is beter to disable screen switching during opening the VGA
window.
How to operate VGA window
(1) How to resize VGA window.
It is impossible to resize the opened VGA window. Close the VGA window by
"vwin_close()" function first, then open with new size specification again.
(Redrawing is required.)
(2) How to move VGA window.
Hide the VGA window by "vwin_hide()" function once, then call "vwin_show()"
function with the new position.
(3) How to change overlapping order.
Hide the VGA window which you want display on the top by "vwin_hide()"
function once, then display it by "vwin_show()" with the same position again.