GRAPHIC PRINT statement  

Purpose

Output text to the selected graphic target.

Syntax

GRAPHIC PRINT expr [; expr] [;]

Remarks

Prior to any graphical operations, the graphic target must first be selected with GRAPHIC ATTACH. The text color and the text background color are set with GRAPHIC COLOR. Text which extends beyond the bounds of the graphic target is clipped. The size of the text to be printed can be determined in advance with the GRAPHIC TEXT SIZE statement.

expr

A numeric or string expression to be drawn on the selected graphic target.  A semicolon can be used as separator between multiple expressions in the same statement.  Drawing begins at the last point referenced (POS) by another graphic statement, or the point specified by GRAPHIC SET POS.  The upper left corner of the text is positioned at the POS.  Upon completion, the POS is moved to the left margin of the next line.  However, if a trailing semi-colon is included, movement to the next line is suppressed.

GRAPHIC PRINT USING$ is valid but USING$ will be evaluated as a string expression, see the USING$ function for more information.

See also

GRAPHIC ATTACH, GRAPHIC CHR SIZE, GRAPHIC FONT, GRAPHIC GET POS, GRAPHIC SET POS, GRAPHIC TEXT SIZE, USING$