NET/MASTER Network Control Language (NCL) Programmer's Guide

Displaying a Panel
Working With Panels
106160 Tandem Computers Incorporated 14–57
2. In the control part of the panel description file, use the #OPT statement and the
CURSOR operand to specify the name of the variable from which to obtain the
input field name:
#OPT CURSOR=&ABC
3. Display the panel using the PANEL verb. In this example, when the panel is
displayed, the cursor is positioned on the F in the FIELD2 input field.
Positioning the Cursor at a
Certain Screen Location
There are two methods you can use to position the cursor at a certain screen location:
by specifying a fixed row and column position, or by specifying a variable row and
column position.
Positioning the Cursor at a Fixed Row and Column Position
If you want to position the cursor in a fixed row and column position, specify the
location in the CURSOR operand of the #OPT statement. The following example
positions the cursor at row 5, column 10:
#OPT CURSOR=5,10
Positioning the Cursor at a Variable Row and Column Position
If you want to position the cursor at a variable row and column position, follow these
steps:
1. In the NCL procedure that displays the panel, assign the row and column into two
variables before displaying it:
&ROW = 5
&COLUMN = 10
2. In the control part of the panel description file, use the #OPT statement and the
CURSOR operand to specify the names of the variables from which to obtain the
row and column position:
#OPT CURSOR=&ROW,&COLUMN
3. Display the panel using the PANEL verb. In this example, when the panel is
displayed, the cursor is positioned at row 5, column 10.
Note If the row and column coordinates you specify lie outside the boundaries of the current operating window,
including when the screen is split, the cursor is positioned at row 1, column 1 of the window.