MenuCheck( )
variable = MenuCheck( index, touchX, touchY)
variable
: Variable to which the results will be stored (1 = touched, 0 = not touched)
index
: Menu index number
touchX
: X coordinate of touch
touchY
: Y coordinate of touch
Use this function to determine if a menu button has been touched.
touchX
and
touchY
are the x and y
coordinates of where the user touched the screen.
If the coordinates of the touch lie within the area of the button, 1 is returned, otherwise 0 is returned.
If Menucheck(0,TX1,TY1) = 1 Then
Menureverse 0
Beep 18,180
End If
Menu( )
variable = Menu(index, coordinate)
variable
: Variable to store the results (1 = selected, 0 = unselected)
index
: Menu index number
coordinate
: Coordinate to check (0=x1, 1=y1, 2=x2, 3=y2)
This function can be used to inspected the coordinates of a given menu button created.
coordinate
0
will read the x coordinate of the top-left corner (x1), 1 will read the y coordinate of the top-left corner
(y1), 2 will read the x coordinate of the bottom-right corner (x2), and 3 will read the y coordinate of the
bottom-right corner (y2).
If Menu(0,1) < 100 THEN '
If menu button 0's top is less than 100
Comfile Technology, Inc
CT1820 User's Manual
45 Of 93
Содержание CUTOUCH CT1820
Страница 4: ...Chapter 1 Overview Comfile Technology Inc CT1820 User s Manual 4 Of 93 ...
Страница 7: ...The CT1820 s Appearance Comfile Technology Inc CT1820 User s Manual 7 Of 93 ...
Страница 8: ...Comfile Technology Inc CT1820 User s Manual 8 Of 93 ...
Страница 9: ...Comfile Technology Inc CT1820 User s Manual 9 Of 93 ...
Страница 12: ...Comfile Technology Inc CT1820 User s Manual 12 Of 93 ...
Страница 17: ...Comfile Technology Inc CT1820 User s Manual 17 Of 93 ...
Страница 19: ...Chapter 2 I O Comfile Technology Inc CT1820 User s Manual 19 Of 93 ...
Страница 29: ...Comfile Technology Inc CT1820 User s Manual 29 Of 93 ...
Страница 32: ...Chapter 3 Command Reference Comfile Technology Inc CT1820 User s Manual 32 Of 93 ...
Страница 41: ...Chapter 4 Touch Input Comfile Technology Inc CT1820 User s Manual 41 Of 93 ...
Страница 52: ...Chapter 5 ModPort I O Expansion Comfile Technology Inc CT1820 User s Manual 52 Of 93 ...
Страница 61: ...Chapter 6 Sample Programs Comfile Technology Inc CT1820 User s Manual 61 Of 93 ...
Страница 87: ...Chapter 7 Panel Mounting Comfile Technology Inc CT1820 User s Manual 87 Of 93 ...
Страница 88: ...Dimensions Comfile Technology Inc CT1820 User s Manual 88 Of 93 ...
Страница 89: ...Comfile Technology Inc CT1820 User s Manual 89 Of 93 ...
Страница 90: ...Panel Cutout Comfile Technology Inc CT1820 User s Manual 90 Of 93 ...