<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > WCon > WCon_Print |
Description
Prints text, with optional color and location specified
Syntax
WCon_Print 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 to position after last printed character.
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_Print "1" at 1, 1 ' Prints to top left corner
WCon_Print "2" at %WCON_CENTER, %WCON_MIDDLE ' Prints to center of screen
' Prints text in yellow on black background
WCon_Print "3" in %WCon_COLOR_YELLOW, %WCon_COLOR_BLACK
' Prints text in yellow on black background at position 5, 5
WCon_Print "4" in %WCon_COLOR_YELLOW, %WCon_COLOR_BLACK at 5, 5