WCon_PrintL

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > WCon >

WCon_PrintL

 

Description

 

Prints text, with optional color and location specified, and moves cursor to the next line

 

Syntax

 

WCon_PrintL text [In fgColor, bgColor] [At column, row]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

text

String

No

text to be printed to WCon

fgColor

Numeric

Yes

foreground color, 0 to 255, you can use %WCon_COLOR_* equates

bgColor

Numeric

Yes

background color, 0 to 255, you can use %WCon_COLOR_* equates

column

Numeric

Yes

olumn to print the text to, you may use %WCON_CENTER

row

Numeric

Yes

row to print the text to, you may use %WCON_MIDDLE

 

Remarks

 

Restrictions

 

Cursor is moved on first character of the next row after printing.

 

If no color is specified, the default one, or the one forced by WCon_Color will be used.

If color is specified, you need to specify both fgColor and bgColor.

 

If no position is specified, the text will be printed at current cursor position.

If position is specified, you need to specify both column and row

 

See also

 

Examples

 

WCon_PrintL "1" at 1, 1                       ' Prints to top left corner

WCon_PrintL "2" at %WCON_CENTER%WCON_MIDDLE ' Prints to center of screen

 

' Prints text in yellow on black background

WCon_PrintL "3" in %WCon_COLOR_YELLOW%WCon_COLOR_BLACK

 

' Prints text in yellow on black background at position 5, 5

WCon_PrintL "4" in %WCon_COLOR_YELLOW%WCon_COLOR_BLACK at 5, 5