SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-124
WINDOW
For example:
FOOT string-exp
specifies text that appears on the sill of a window. When you specify FOOT with a
window that has a sill, the cursor is automatically positioned at the end of the foot
text string.
FOR linecount-exp | *
specifies the width and height of the window. One purpose of this option is to size
popup menus. The FOR option sets the height of the window to linecount-exp.
The width of the window is set to #MENUWIDTH, which is the width of the last
menu referenced with the Return key. You can use the SIZE option to specify
another width.
linecount-exp
specifies the height of the body portion of the window, not including the
heading and foot portions. It is the same as SIZE #MENUWIDTH,
linecount-exp + 2.
For example, the following menu production for DeviceTypes causes a menu 8
lines high to pop up below the DeviceTypes menu text. The first item in this
popup is DISC.
DeviceTypes <==BELOW; WINDOW[] MENU CACHE/DISC/ FOR 8;
DISC .. <==BESIDE;WINDOW pup,"LISTDEV DISC";
?MENU Employee
{-------------}
{ The following defines an Employee panel. Note:
{ 1) [ ] defines input fields
{ 2) :: defines corresponding video and field attributes
{-------------------------------------------------------}
First [ ] Last [ ] :: (alpha) (alpha)
Street[ ]
City [ ] State[ ] Zip[ ] :: (a) (a) (n)
Phone [ ] Home [ ] :: (n) (n blank)
*
?PROC ShowEmp
{------------}
WINDOW Employee FIELDS (reverse dim) { default reverse dim
MENU "CALL AcceptEmp"
CACHE FIRST UNTIL "*" SIZE 20
KEYS F5, F6, F7
HEAD "Add-F5 Delete-F6 List-F7";
?PROC AcceptEmp
{--------------}
LINE #MENULINE,#MENUCOL;
VARIABLE #first, #last, #addr, #city, #st, #zip, #office, #home;
ACCEPT #first, #last, #addr, #city, #st, #zip, #office, #home;
IF #FKEY=5 THEN CALL AddEmp;
IF #FKEY=6 THEN CALL DeleteEmp;
IF #FKEY=7 THEN CALL ListEmp;