User`s guide

FCLOSE Instruction
FCLOSE closes a window to input and output (but does not erase it or remove it from
memory). The syntax for FCLOSE is:
FCLOSE (glun)
glun The logical unit number specified in the FOPEN instruction that opened
the window.
FDELETE Instruction
FDELETE removes a closed, attached window from the screen and from graphics memory.
The syntax for FDELETE is
FDELETE (glun) "window_name"
glun The same values as specified in the FOPEN instruction that created the
window.
DETACH Instruction
DETACH frees up a LUN for use by a subsequent ATTACH instruction. The syntax for DETACH
is:
DETACH (glun)
glun The LUN specified in a previous ATTACH instruction.
Custom Window Example
This section of code will create and delete a window:
AUTO glun ; Graphics window LUN
ATTACH (glun, 4) "GRAPHICS" ; Attach to a window LUN
; Open the window "Test" with a maximum size of
; 400 x 300 pixels
FOPEN(glun) "Test","/MAXSIZE 400 300"
; Your code for processing within the window
; goes here; e.g:
GTYPE (glun) 10, 10, "Hello!"
; When the window is no longer needed, close and delete the
; window and detach from the logical unit
FCLOSE (glun)
Creating Windows
V+Language User's Guide, v17.0
Page 246