
PT-Basic Programming Manual Ver. 1.00 73/143
To get the y coordinate of the current TextBlock position.
A% =GETTEXTBLOCKCUR_Y(BlockNo %)
PRINT "Y=",GETTEXTBLOCKCUR_Y(1)
A% is an integer variable to be assigned to the result.
BlockNo% is an integer variable in the range from 0 to 15.
To set specific TextBlock as active TextBlock and set position.
SETTEXTBLOCKCUR(BlockNo %, Column%, Row%)
Several key arguments as below:
To show or hide TextBlock cursor.
SHOWTEXTBLOCKCURSOR(BlockNo %, Show%, Type%)
SHOWTEXTBLOCKCURSOR(1,1,1)
Several key arguments as below:
1:Show cursor
0:Hide cursor
0: Cursor off.
1: Cursor on, and cursor type is a line as _.
2: Cursor on, and cursor type is a line as |.
3: Cursor on, and cursor type is a block as ■.
To set default background color.
TEXTBLOCK_SETBGCOLOR(Color%)
TEXTBLOCK_SETBGCOLOR(16711680) „Blue
Color % is an integer variable indicating which color you want
to set.
After executing this command, all TextBlock will be reset.
Commentaires sur ces manuels