Creates awindow for the display of graphics or text.
If the value of window_index specifies an existing window, the existing window is deleted and a new window is created.
NOTE: If a widow with index zero (0) is already open and you call WINDOW with no parameters, the original window zero (0) will be deleted. To avoid this, specify a window_index for the new window or use the Free keyword.
Colors The maximum number of color table indices to be used. This keyword has effect only if it is supplied when the first window is created. Otherwise, PV-WAVE uses all of the available color indices.
Colors=2
when creating the first window.
UNIX and OpenVMS Users: If the X Window System is being used, a negative value for Colors specifies that all but the given number of colors from the shared color table should be allocated.
UNIX and OpenVMS Users: The default position of the new window is opposite the current window.
WINDOW, Get_Win_ID=New_Win_ID
WINDOW, Get_Xpix_ID=New_Xpix_ID, /Pixmap
WINDOW, Get_Xwin_ID=New_Xwin_ID
A metafile is an internal, vector-based record of all the graphics commands sent to a window. By default, a metafile is kept for each window to speed the redrawing of the window when it is resized. The metafile is also used when printing to avoid resolution problems that occur when printing a bitmap image.
Noretain (UNIX/OpenVMS Only) An obsolete keyword (see the Retain keyword).
Noshow (Windows only) If present and nonzero, the graphics window is not displayed on the screen.
Pixmap This keyword specifies that the window being created is actually an invisible portion of the display memory called a pixmap. (Interchangeable with the Bitmap keyword.)
Retain Specifies how backing store for the window should be handled. Possible values for this keyword are listed below:
WINDOW, Set_Win_ID=1234567L
WINDOW, Set_Xpix_ID=1234567L
WINDOW, Set_Xwin_ID=1234567L
PV-WAVE Graphics
:
WINDOW, Title='PV-WAVE Graphics'
If no position is specified, the position of the window is determined from the value of window_index, using the following rules:
YSize The height of the window, in pixels. (Default: 512)
WINDOW, 1
WINDOW, 63
WINDOW, 1 WINDOW, 64 % WINDOW: Window number out of range or no more % windows Execution halted at $MAIN$ (WINDOW)
DEVICE, Window_State = winarr
You only need to use WINDOW if you want to display more than one PV-WAVE window simultaneously or to set specific characteristics of windows.
The behavior of WINDOW varies slightly depending on the window system in effect. You can use the DEVICE procedure to change many of the WINDOW procedure's defaults.
The newly created window becomes the current PV-WAVE window, and the system variable !D.Window is set to the window index associated with it. (See the WSET procedure for a discussion of the current PV-WAVE window.)
WINDOW, 0
WINDOW, 1, XSize=3000, YSize=3000, /Noshow PLOT, x, y WPRINT, 1
Windows Users: If you want to see the current contents of window 1 in this example at any time, create a visible window with a smaller size and pass the contents of window 1 to the smaller window using the WCOPY and WPASTE functions. These commands transfer graphics using the Clipboard. For example:
status = WCOPY(1)
WINDOW, 2
status = WPASTE(2)
WSET, 1
For additional information on PV-WAVE graphics devices, see Appendix , Output Devices and Window Systems.
.
Windows Users: For information on the graphics window Control menu, see Chapter 3, Getting Started: Windows, in the PV-WAVE User's Guide