Brother International TD-4750TNWB FBPL Command Reference - Page 190
TOUCHPRESS, Description, Syntax, Example
![]() |
View all Brother International TD-4750TNWB manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 190 highlights
10.54 TOUCHPRESS() Description Detect the status of the touch screen. Return 1 if the touch screen for the specified region is pressed, otherwise returns 0. Syntax TOUCHPRESS (left, top, right, bottom) Parameter left top right bottom Description Left side position of region (pixel) Top side position of region (pixel) Right side position of region (pixel) Bottom side position of region (pixel) Note: TJ-4021TN / TJ-4021TNR / TJ-4121TN / TJ-4121TNR only. Example Sample Code DOWNLOAD "DEMO.BAS" :START IF TOUCHPRESS(0,90,272,120) 0 THEN GOTO A GOTO START ENDIF :A CLS SIZE 4,1 GAP 0,0 DIRECTION 1 TEXT 30,30,"3",0,1,1,"TOUCH TEST!!" PRINT 1,1 EOP DEMO 185
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/190.png)
185
10.54 TOUCHPRESS()
Description
Detect the status of the touch screen. Return 1 if the touch screen for the specified region is pressed,
otherwise returns 0.
Syntax
TOUCHPRESS (left, top, right, bottom)
Parameter
Description
left
Left side position of region (pixel)
top
Top side position of region (pixel)
right
Right side position of region (pixel)
bottom
Bottom side position of region (pixel)
Note:
TJ-4021TN / TJ-4021TNR / TJ-4121TN / TJ-4121TNR only.
Example
Sample Code
DOWNLOAD "DEMO.BAS"
:START
IF TOUCHPRESS(0,90,272,120) <> 0 THEN GOTO A
GOTO START
ENDIF
:A
CLS
SIZE 4,1
GAP 0,0
DIRECTION 1
TEXT 30,30,"3",0,1,1,"TOUCH TEST!!"
PRINT 1,1
EOP
DEMO