Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Canvas Control >

Canvas_Printl

Previous pageReturn to chapter overviewNext page

 

Description

 

Output text to the selected canvas target. POS is moved to the left margin of the next line.

 

Syntax

 

n = Canvas_Printl( 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 moved to the left margin of the next line.

 

Restrictions

 

See also

 

Examples