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

Defining Trailer Lines in a Panel
Working With Panels
106160 Tandem Computers Incorporated 14–53
Defining Trailer Lines
in a Panel
You can create a panel description file that enables you to position text at the bottom of
a panel regardless of the size of the screen on which the panel is displayed. This is
useful for positioning function key prompts that are conventionally placed at the
bottom of a screen.
Using the #TRAILER Panel
Control Statement
The #TRAILER panel control statement is designed for the purpose of defining text
that must appear at the bottom of a screen. In addition, the display of these lines can
be suppressed if desired. All the normal properties of field characters are available to
these trailer lines.
To observe the effect of using the #TRAILER panel control statement, follow these
steps:
1. Type the following NCL procedure in your user procedure library and call it
ZEX1414N:
zex1414n: PROCEDURE
/* Displays a panel that uses #TRAILER */
&display=yes
PANEL zex1414p
SAY "Input data is :"&input
END zex1414n
2. Type the following panel description file in your user panel library and call it
ZEX1414P:
#NOTE ZEX1414P
#FLD ~ TYPE=OUTPUT INTENS=HIGH JUST=CENTER COLOR=RED PAD=-
#TRAILER START POSITION=&DISPLAY
%this is the first trailer line in lower case and high intensity
~here is a centered line padded with hyphens and in red
%this is the third trailer line the default color is white as in the first line
+THIS IS THE LAST TRAILER LINE IN UPPER CASE AND LOW INTENSITY
#TRAILER END
% TEST PANEL FOR SHOWING TRAILER LINES
+enter some data _input +
3. Execute the ZEX1414N NCL procedure from the OCS command input line using
the following START command:
START ZEX1414N