Contents Previous Next Subchapters

Specifying A Graphics Window's Initial Style
Syntax gaddwin(captiongeometrycall backstyle)
See Also delwin , gplot
Menu Command Graphics | Add Window

Adds a new graphics window with the specified caption , geometry , call back command, style and selects it as the current window for plotting. The character row vector style is either "normal" or "iconic" and specifies the initial style in which the window is displayed. 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.

If you enter
     caption  = "Test Plot"
     geometry = [200, 100, 200, 100]
     callback = "delwin(caption)"
     style    = "iconic"
     id       = gaddwin(caption, geometry, callback, style)
     gplot(seq(3), seq(3))
O-Matrix will create a graphic window and plot a line in the window but display it as an icon. You can see the plot by restoring the window to normal mode.