Contents Previous Next Subchapters

Determining The Current Size Of The O-Matrix Main Window
Syntax getvisible
See Also getscreen , addeditor , adddialog , addtable , gaddwin

Returns a two-element integer row vector containing the size of the visible region within the main O-Matrix window in pixels.

You can use the getvisible function to place a window in the middle of the main O-Matrix window. If you enter
     size     = getvisible
     data     = ["Line 1.", NEW_LINE, "Line 2."]
     caption  = "Editor Window"
     geometry = [size / 4, size / 2]
     callback = "delwin(caption);"
     addeditor(caption, geometry, callback, data)
O-Matrix will create an editor window in the center of the main window. You can delete the editor using its caption bar.