Contents Previous Next Subchapters

Listing Text In The Current Graphics Window
Syntax glisttext
See Also gaddtext , gdeltext

Description
Returns a character matrix with each row corresponding to a text entry in the current graphic window. The first five columns contain the identification number of the text; the next five columns contain the "right" coordinate of the text; the third five columns contain the "up" coordinate of the text; and the first row of the text itself starts in the sixteenth column of the return value. A comma is added at the end of each row of text and the return matrix is padded with blank spaces so that all of its rows have the same length.

Example
If you enter
     ginit
     gaddtext("One", [.5, .3])
O-Matrix will place the text "One" in the Graphic 0 window and echo the value
     1
in the Command window. The value 1 is the identifier the text that was added. If you then enter
     gaddtext("Two", [.5, .6])
O-Matrix will place the text "Two" in the Graphic 0 window and echo the value
     2
in the Command window. If you continue by entering
     glisttext
O-Matrix will reply
   1 0.50 0.30 One,
   2 0.50 0.60 Two,