09.12.2012 Views

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

KEYENH Key Enhance<br />

Example 4<br />

Omitting Ul$ <strong>and</strong> Off$ turns on inverse video for the upper <strong>and</strong> lower softkey label lines.<br />

Ul$=CHR$ (16)<br />

Off$=CHR$(lS)<br />

OUTPUT 718;“MOV I-NV,O;”<br />

&f&es UL$ as the character<br />

to turn the underline<br />

on.<br />

Lk@ws OFF$ as the character<br />

to turn o~$ inverse<br />

video <strong>and</strong> underlining.<br />

OUTPUT 718;“MOV M,OVENH,l;”<br />

OUTPUT 718;“KEYENH l,%MY KEYION OFF%,@IF 0, EQ,I-NVQ,OIF MYKEY<strong>and</strong> ONOFFare<br />

O,EQ,M-OVENHO;” displayed in inverse video.<br />

Description<br />

The KEYENH comm<strong>and</strong> has two parameters (inverse video condition <strong>and</strong> move enhancement<br />

condition). Setting these parameters to true or false controls how the softkey label is displayed.<br />

The softkey label can be displayed with sections of the label in inverse video or underlined.<br />

If the inverse video condition for the softkey label is true, the following occurs:<br />

w The top line of the softkey label is displayed in inverse video (see example 2).<br />

w If there are no enhancements embedded in the softkey label for the second line of the<br />

softkey label, the second line of the softkey label is displayed in inverse video. (See<br />

example 4). (See the following section, “Using Enhancements,” for more information about<br />

enhancements.)<br />

If the inverse video condition for the softkey label is false, the inverse video is not used <strong>and</strong><br />

the softkey label appears as specified by the move enhancement condition.<br />

If the move enhancement condition is true, the following occurs:<br />

� If no enhancements are used in the softkey label, the last line of the softkey label is<br />

underlined.<br />

w If enhancements are used in the softkey label, the enhancement (inverse video or<br />

underlining) is moved to the other side of the softkey label.<br />

If the move enhancement condition for the softkey label is false, the softkey label appears as<br />

specified by the inverse enhancement condition.<br />

Using Enhancements<br />

An alternate way to control underlining <strong>and</strong> inverse video is to use “codes” to separate sections<br />

of a softkey label.<br />

� If you want to underline different sections of the softkey label, use code CHR$(lG) (turns on<br />

underlining) <strong>and</strong> CHR$(15) (turns off the enhancements).<br />

� If you want to use inverse video on different sections of the softkey label, use code CHR$(14)<br />

(turns on inverse video) <strong>and</strong> CHR$(15) (turns off enhancements).<br />

Example 1 demonstrates that there are two ways to underline the “OFF” section of softkey<br />

label using enhancements.<br />

The recommended convention for using inverse video <strong>and</strong> underlining is to use inverse video to<br />

indicate an active function <strong>and</strong> underlined labels to show a choice.<br />

5-258 Programming Comm<strong>and</strong>s

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!