Contents Previous Next Subchapters

Specifying A Graphics Window's Caption
Syntax gaddwin(caption)
See Also delwin , gplot , and gaddwin(caption, geometry)
Menu Command Graphics | Add Window

Adds a new graphics window with the specified caption and selects it as the current window for plotting. The return value is an integer identifier for the new window. It can be used to reference the window in subsequent calls to the gwin function. This syntax uses the default settings for the arguments geometry , call back , and style .

If you enter
     caption = "Test Plot"
     id      = gaddwin(caption)
     gplot(seq(3), seq(3))
O-Matrix will create a window caption "Test Plot" and plot a line in the window. If you then enter
     print id 
O-Matrix will respond
which is the identifier for the new graphic window.