Argox PA-20 Basic Programming Manual User Manual
Page 65

PT-Basic Programming Manual Ver. 1.00
64/143
Purpose: To get the y coordinate of the current cursor position in the
activated TextBlock.
Syntax: Y% = CURSOR_Y
Example: Y% = CURSOR_Y
Description: Y% is an integer variable to be assigned to the Y coordinate
of the current cursor position.
Purpose: To move the cursor to a specified location in the activated
TextBlock.
Syntax: LOCATE X% , Y%
Example: LOCATE 0,0
…
LOCATE 2,3
…
Description: X% is an integer variable indicating the new X coordinate
position of the cursor.
Y% is an integer variable indicating the new Y coordinate
position of the cursor.
Purpose: To fill a rectangular area in the activated TextBlock with a
user defined color.
Syntax: FILL_RECT(color% , left% , top% , width% , height%)
Example: FILL_RECT(65280,100,100,100,100) „green rectangular
area
Description: Several the argument as follows:
color%
Fill color choice.
left %
Fill form the start point of X-axis (pixel).
top %
Fill form the start point of Y-axis (pixel).
width%
Fill the width form the start point (pixel).
height%
Fill the high form the start point (pixel).