GRAPHICBOX #g.gb 5, 5, 100, 100
TEXTEDITOR #g.te 115, 5, 100, 200
open "Init" for Window as #g
#g.gb "trapclose [Done]"
#g.gb "font lucida_console 12"
#g.gb "backcolor green"
#g.gb "color yellow"
#g.gb "place 0 0"
#g.gb "\" ''' Write a line feed
#g.gb "posxy X Y" ''' Get graphics cursor position (font height)
Char$ = "X"
#g.te "!STRINGWIDTH? ";Char$;" "; X
print X, Y '* Prints 0 20 *
#g.te "!STRINGWIDTH? Char$ X"
print X, Y '* Prints 0 20 *
#g.gb "\"; Char$ '* Write a char *
wait
[Done]
CLOSE #g
END
GRAPHICBOX #g.gb 5, 5, 100, 100
TEXTEDITOR #g.te 115, 5, 100, 200
open "Init" for Window as #g
#g.gb "trapclose [Done]"
#g.gb "font lucida_console 12"
#g.gb "backcolor green"
#g.gb "color yellow"
#g.gb "place 0 0"
#g.gb "\" ''' Write a line feed
#g.gb "posxy X Y" ''' Get graphics cursor position (font height)
Char$ = "X"
#g.gb "STRINGWIDTH? ";Char$;" X"
print X, Y '* Prints 0 20 *
#g.gb "STRINGWIDTH? Char$ X"
print X, Y '* Prints 0 20 *
#g.gb "\"; Char$ '* Write a char *
wait
[Done]
CLOSE #g
END