Specifications
120
- If the specified character string length exceeds the specified touch key area, the excess will
be discarded. In the sample below, only "ABC" may display.
DIM RECT%(3)
KEYNO%=501 ’User-defined touch key numbered 501
KEYDATA$="U1" ’Key data="U1"
RECT%(0)=0:RECT%(1)=0 ’Initial coordinates (0,0)
RECT%(2)=40:RECT%(3)=20 ’Final coordinates (40,20)
DSPDATA$="ABCDE" ’Display "ABCDE"
FONT%=.cnANK ’Use standard-size font in ANK mode
ATTRIB%=.cnW1H1 ’In regular size
CALL "CONSOLE.FN3".fcUKey KEYNO%,KEYDATA$,RECT%(),DSPDATA$,
FONT%,ATTRIB%
- If you program a user-defined touch key to the same key number more than one time, then
the last specification will take effect.
- User-defined touch keys cannot overlap.
- If user-defined touch keys are enabled, characters to be displayed on the area occupied by
those touch keys cannot display. Disabling those touch keys will display them.
[ 2 ] Canceling the user-defined touch key with "CONSOLE.
FN3"
You may cancel a user-defined touch key(s) by using "CONSOLE.FN3."
Given below is a sample program which cancels definition made to a key numbered 501.
KEYNO%=501 ’User-defined touch key #501
CALL "CONSOLE.FN3" .fcUKeyEnd KEYNO%
- You may clear the display screen so as to close all of user-defined touch keys, by using the
"CONSOLE.FN3."
CALL "CONSOLE.FN3".fcLcdClr
[ 3 ] Keystroke trapping
You may trap the pressing of a particular user-defined touch key, by programming with the KEY
ON
, KEY OFF, and ON KEY...GOSUB statements.
For details about the keystroke trapping, refer to Chapter 9, "Event Polling and Error/Event
Trapping."