SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-127
WINDOW
OFF
indicates that the window should have no function keys enabled for it. To
globally specify the KEYS option, use the ALTER KEYS option.
MENU [ default-production ] [ , shift-production ]
indicates that the window is a menu. A window declared to be a menu defaults to
NOGLASS, NOSILL, PROTECT, NOPAGES and has a heavy- or double-line
frame. Menu windows have special features, including simple point-and-press-
Return execution of SeeView statements that are logically associated with the
menu cache line items of a menu window. You can associate SeeView statements
with menu cache lines in several ways.
First, you can associate a specific production with a given cache line. To do so,
place a production symbol (<==) at the end of a line of text that is to appear in a
menu. Follow the production symbol with one or more statements that handle the
menu item specifically, to be executed when the menu line item is selected.
Second, menu items that do not have a specific production symbol associated with
them execute the default production associated with the MENU if you defined a
default production for that menu. This lets you associate a single rule with all the
menu items in a window, such as:
MENU "CALL Handler"
Third, you can define a production for all items in a menu to be executed when a
menu item is selected with the Shift-Return key. This production is called a shift
production. It allows generalized context-sensitive HELP for menus, which is
implemented by pointing to a menu item and pressing Shift-Return. You can also
use shift productions to provide other secondary context-sensitive functions, such
as generalized menu maintenance.
MENU "CALL Handler" ,"CALL MenuMaint"
default-production
specifies a string expression containing SeeView statements that are executed
if the designated menu line does not contain a specific production symbol
( <== ). The SeeView statements contained in the default production are
executed when the Return key is pressed or when any of the function keys in
the KEYS option fkey-list are pressed.
shift-production
specifies a string expression containing SeeView statements that are executed
when you select a menu item by pointing the cursor to the menu item and
pressing Shift-Return. Shift-Return causes the shift production to be executed.
Conceptually, Return is analogous to a mouse click and invokes the default
production. Shift-Return is analogous to a double-click and invokes the shift
production.