
Finally the
LINE
and
BOX
commands commands are used to draw an oblique line across the screen and a
box near the center.
LINE Xmin; Ymin; Xmax; Ymax:
BOX 3; 3; -2; -2:
Notice the use of
Xmin
,
Xmax
,
Ymin
and
Ymax
in the
LINE
command. These are the minimum and
maximum limits of the current
PLOT
view and using them instead of fixed values means that the line would
appear the same even if the screen were to be re-sized in the
PLOT SETUP
view. The box, on the other
hand, would change size if the screen size were to be changed in
PLOT SETUP
. The
FREEZE
command is
needed to ensure that your screen is visible to the user and not immediately replaced by the next view.
FREEZE
resumes execution of the program as soon as any button is pressed.
Note that
SETVIEWS
has a “Start” option and also a final option consisting of a single space in quotes
which is simply to link in the
.MSG.SV
program so that it is transmitted with the aplet. It does not appear on
the menu but ensures that the
.MSG.SV
program is linked.
267