DRAW_TEXTPOS xStart, yStart, textString, [textSize]
Purpose Draw the textString with its top left corner begins at (xStart, yStart).

You can also change the text size to display using the optional textSize parameter.
Parameters
xStart - x-coordinate at the upper-left corner of the text.
yStart - y-coordinate at the upper-left corner of the text.
[textSize] 1 : 6 x 9
2 : 8 x 12
3 : 8 x 15
4 : 12 x 21
5 : 13 x 24
6 : 18 x 32
7 : 26 x 48

Note:

1. If you run DRAW_TEXTPOS without the textSize parameter, it will simply use the last text size selected by the last DRAW_TEXTPOS command or defined by the DRAW_TEXTSIZE command.
 
2. The portion of textString displaying beyond the screen width will be truncated.
 
3. The origin is at the upper-left hand corner of the screen. Default screen resolution is 128x64
 
Examples DRAW_TEXTPOS 0,0,"Size 1",1     ' use textsize = 1
DRAW_TEXTPOS 0,56,"also Size 1" ' without textsize parameter"
DRAW_TEXTPOS 0,10,"Size 2", 2
DRAW_TEXTPOS 0,22,"Size 3", 3
DRAW_TEXTPOS 0,35,"Size 4", 4
DRAW_TEXTPOS 53,0,"S5", 5
DRAW_TEXTPOS 80,0,"S6", 6
DRAW_TEXTPOS 80,32,"7", 7
Comments:
Note: The origin is at the upper-left hand corner of the screen. Default screen resolution is 128x64
See Also DRAW_TEXT, DRAW_TEXTSIZE

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual