Agilent Technologies 8590 TV Converter Box User Manual


 
KEYENH Key Enhance
Example 4
Omitting
Ul$
and
Off$
turns on inverse video for the upper and lower softkey label lines.
Ul$=CHR$
(16)
Off$=CHR$(lS)
OUTPUT
718;“MOV
I-NV,O;”
&f&es
UL$
as the charac-
ter to turn the underline
on.
Lk@ws
OFF$
as the char-
acter to turn
o~$
inverse
video
and underlining.
OUTPUT
718;“MOV
M,OVENH,l;”
OUTPUT
718;“KEYENH
l,%MY
KEYION
OFF%,@IF
0,
EQ,I-NVQ,OIF
MYKEYand
ONOFFare
O,EQ,M-OVENHO;”
displayed in inverse video.
Description
The KEYENH command has two parameters (inverse video condition and move enhancement
condition). Setting these parameters to true or false controls how the softkey label is displayed.
The softkey label can be displayed with sections of the label in inverse video or underlined.
If the inverse video condition for the softkey label is true, the following occurs:
w
The top line of the softkey label is displayed in inverse video (see example 2).
w
If there are no enhancements embedded in the softkey label for the second line of the
softkey label, the second line of the softkey label is displayed in inverse video. (See
example 4). (See the following section,
“Using Enhancements,” for more information about
enhancements.)
If the inverse video condition for the softkey label is false, the inverse video is not used and
the softkey label appears as specified by the move enhancement condition.
If the move enhancement condition is true, the following occurs:
n If no enhancements are used in the softkey label, the last line of the softkey label is
underlined.
w
If enhancements are used in the softkey label, the enhancement (inverse video or
underlining) is moved to the other side of the softkey label.
If the move enhancement condition for the softkey label is false, the softkey label appears as
specified by the inverse enhancement condition.
Using Enhancements
An alternate way to control underlining and inverse video is to use “codes” to separate sections
of a softkey label.
n If you want to underline different sections of the softkey label, use code
CHR$(lG)
(turns on
underlining) and
CHR$(15)
(turns off the enhancements).
n If you want to use inverse video on different sections of the softkey label, use code
CHR$(14)
(turns on inverse video) and
CHR$(15)
(turns off enhancements).
Example 1 demonstrates that there are two ways to underline the “OFF” section of softkey
label using enhancements.
The recommended convention for using inverse video and underlining is to use inverse video to
indicate an active function and underlined labels to show a choice.
5-258 Programming Commands