![]() | ||
| Forms | ![]() ![]() ![]() ![]() | AT, DRAW and TEXT |
After drawing the box, the cursor is positioned just inside the top left corner of the box.
The TEXT command can be used to place text any where on the screen.
The AT command positions the cursor.
The default screen position for display data on the screen is one line down and
in the same column as the previous data.
The AT clause can be used on any command that relates to
displaying information to position the
information according to the coordinates specified.
Positioning can be absolute or the positioning can be relative to
the current position.
Numbers such as AT 10,15 positions the information at
a specific point on the screen (e.g. row 10, column 15).
A "+" or a "-" such as (+3,+0) indicates relative movement
from the current position (e.g. 3 rows down, in the same column.
Relative positions can be specified in the form "+n" or "-n" to indicate row and
column movement from the previous cursor position.
An asterisk ( * ) indicates the maximum row or column.
For example:
AT
AT [ r ] [, c ]
AT positions the cursor on the screen. This determines where
the next element is displayed. The default position is one row down at the same
column.AT specifies row (r) and column (c) for the position. Row and
column positions can be specified in either absolute or relative terms.
Absolute positions are specified in the form "n" where n is the absolute row or
column. AT 1,1 positions the cursor to the upper left corner
of the window.AT 5 , 1
Positions at row 5, column 1.
AT , 12
Positions at column 12 of the current line.
AT -1,1
Positions at the beginning of the previous line.
The AT command positions the cursor independently of any
screen display command. This may be useful in setting a default display
position in the middle of a list of FIELD commands.
AT can always be specified as a clause on an individual
command.
DRAW
DRAW ['c']
FOR [r][,c]
FROM [r][,c]
TO [r][,c]
CENTER [HORIZONTAL | VERTICAL]
END symbol
FILL ['fill_character']
NOLINES
START symbol
General Clauses:
AT [r][,c]
VIDEO video_options
DRAW draws lines (both vertical and horizontal) and boxes.
After drawing a horizontal line, the cursor is positioned at
the row and column position of the first character of the line. After drawing a
vertical line, the cursor is positioned one character to the left of the top
character of the line. After drawing a box, the cursor is positioned at the top
left inner corner of the box.DRAW 'c'
Specifies a character in quotes immediately following the
DRAW command to alter the character used to draw the line or
box.For example, to draw a box using asterisks, specify:
DRAW '*' FOR 2,28FOR r,c
Specifies a relative destination point for drawing. The line or box
begins at the current position and continues for as many characters as are
specified for row and column. The current position counts as one row and/or
column, so the row and column specifications are one less than the total
dimension desired.
If only the row coordinate is specified, a vertical line is drawn.
If only the column coordinate is specified, a horizontal line is drawn. A
DRAW with no FOR specified is one row deep
and one column wide ,i.e. one character.For example: The first command draws a box three lines deep and
29 columns wide; the second draws a vertical line for 4 rows down; the third
draws a horizontal line for 20 columns across.
DRAW FOR 2,28
DRAW FOR 3
DRAW FOR ,19FROM r,c
Specifies the absolute starting point for drawing the line or box.
If
FROM is not specified, the DRAW commences
at the current cursor position. When drawing a box, FROM
specifies the upper left coordinate. When drawing a line,
FROM specifies the left column or top row. For example, to
draw a box that begins on line 12, column 2 and continues to line 20, column 30,
specify:
DRAW FROM 12,2 TO 20,30TO r,c
Specifies an absolute destination point for drawing the line or box.
When a box is drawn,
TO specifies the bottom right coordinate.
When a line is drawn, TO specifies the right column or bottom
row. Specify an asterisk to denote maximum row or maximum column as defined by
PAGESIZE.For example, the first command draws a box starting at the current
position and ending in the lower right corner; the second draws a box around the
current page; the third draws a box from line 12, column 2 to line 20, column
25.
DRAW TO * , *
DRAW FROM 1 , 1 TO * , *
DRAW FROM 12,2 TO 20,25CENTER [HORIZONTAL| VERTICAL]
Specifies that the box is centred in the screen.
HORIZONTAL causes the box to be centred only horizontally;
VERTICAL causes the box to be centred only vertically. If
neither option is specified the box is centred in the middle of the screen.END | START symbol
Specifies symbols used for the junction of vertical and horizontal
lines when drawing a box. The symbols at the junction of the vertical line and
the horizontal line are different from the standard horizontal and vertical line
characters and differ depending on which corner is being drawn.
The available symbols are:
TLCORNER Top Left Corner
TRCORNER Top Right Corner
BLCORNER Bottom Left Corner
BRCORNER Bottom Right Corner
TTEE Top TEE
BTEE Bottom TEE
LTEE Left TEE
RTEE Right TEE
INTERSECTION Intersection
VLINE Vertical Bar
HLINE Horizontal Bar
FILL
Specifies the character to use to fill a box. FILLing a box means
that any previously displayed information in that portion of the screen is
overwritten. A
DRAW without the FILL clause
does not affect data in the middle of the box. FILL without a
fill character fills the box with blanks. Specify VIDEO
INVERSE on the DRAW, to FILL with
INVERSE FILL characters. The fill character can be any
character from the keyboard.NOLINES
Specifies that blanks are used as the line drawing character. When
NOLINES is used with VIDEO INVERSE, the line
or box is drawn with inverse blanks.
TEXT
TEXT 'text_string'
CENTER
LINESET
UNDERLINE ['underline_character']
General Clauses:
AT [r][,c]
VIDEO video_optionsTEXT specifies a text string which is displayed.
Each TEXT command displays the text at the current
cursor position and increments the position by the standard single line. The
text string to be displayed is the first and only required parameter. This may
be followed by any of the specific or general clauses.TEXT 'Welcome to the Administration System' at 3,30
TEXT 'Please
contact ext. 123 for help' at +2 ,+5 CENTER
Centres the specified string in a line.
LINESET
The
TEXT command without LINESET
displays any character that can be entered on the keyboard.
LINESET specifies that the special symbols associated
with lines and boxes are used. With
LINESET, the specified text string is a set of codes with the
following meanings. CHARACTER MEANING
A Top left corner
B Top right corner
C Bottom left corner
D Bottom right corner
E Top Tee
F Bottom Tee
G Left Tee
H Right Tee
I Intersection
J Vertical line, thin
K Vertical line, thick
M Horizontal line, thin
N Horizontal line, thick
Codes must be uppercase. Any character other than the code
characters is displayed on the screen. For example, the following creates a
small rectangular box:
TEXT 'AMMMMMMMMMMMMB' LINESET
TEXT 'J J' LINESET
TEXT 'CMMMMMMMMMMMMD' LINESET
UNDERLINE
Specifies that the text is underlined with hyphens (-) on a new line.
Specify the underline character to use. For example, to underline the text with
an equal sign instead of a hyphen:
TEXT 'MAIN MENU' -
CENTER AT 2 VIDEO BOLD UNDERLINE '='



