1 textblock commands – Argox PA-20 Basic Programming Manual User Manual
Page 71

PT-Basic Programming Manual Ver. 1.00
70/143
3.14.1 TextBlock commands
Purpose: To define the TextBlock setting and the background using default
background color or user defined color.
Syntax: A%=DEFINETEXTBLOCK_COLOR
(BlockNo% , FontID% , BGType% ,Color%, Column%, Row%,
XPos%, YPos%)
Example: Orange%=36095
A%=DEFINETEXTBLOCK_COLOR(1,0,1,Orange%,6,5,10,30)
…
A%=SETTEXTBLOCK(1,0)
…
Description
:
A% is an integer variable to be assigned to the result.
A%
Meaning
0
Define TextBlock fail
1
Define TextBlock OK
Several key arguments as below:
BlockNo%
TextBlock number(1~15)
FontID%
Defined Font:
0~1: system font
2~9: user font.
BGType%
If 0 then using default background.
If 1 then using user defined background.
Color%
Background color
Column%
TextBlock column number.
Row%
TextBlock row number.
XPos%
TextBlock left-top X position in pixel
(0~239).