640
'TEXT' Mnemonic
Draw Text
Format
'TEXT'(x,y[,x,y],text$,attrib$)
Where:
attrib$
Optional attribute string. Valid codes include:
& Underscore the character following the '&' (as in hot keys)
C Centre text
F Show focus lines around text
N Numeric data alignment
R Right Justify
S Applies background colour to area directly behind text.
W Word wrap
# Same as N
text$
String expression.
x,y,x,y
Point coordinates for top left and (optionally) bottom right, in graphical
units. Numeric expression.
Description
Use 'TEXT' to draw (print) text in graphics mode, starting at the point set by the first
x,y coordinates. Use graphical units or @X(col) and @Y(line) functions for the
various coordinates. The 'TEXT' mnemonic uses current 'FONT' and colour attributes
(i.e., 'RED', 'BLUE', ...).
Use the optional second set of x,y parameters to define the bottom right corner of a
rectangular region for displaying the text. You can use the functions TXH( ), p.542,
Note: For Windows printers, if the current background colour is white, the output
will be considered transparent (i.e., with no background fill).
Example
0010 PRINT 'FONT'("MS Serif",-11)
0020 PRINT 'GREEN','TEXT'(240,420,"&Hello","&")