Canvas_Print

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands >

Canvas_Print

 

Description

 

Output text to the selected canvas target. POS will not move to the next line

 

Syntax

 

n = Canvas_Print( StringExpression )

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

StringExpression

String

No

Any string expression

 

Remarks

 

The text color and the text background color are set with Canvas_Color. Text which extends beyond the bounds of the canvas target is clipped.

Drawing begins at the last point referenced (POS) by another Canvas statement, or the point specified by Canvas_SetPos.  The upper left corner of the text is positioned at the POS.

Upon completion, the POS is NOT moved to the left margin of the next line.

 

Restrictions

 

See also

 

Examples