AMSTRAD cpc 6128 User Instruction page 401

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

.... and the words 'hello there' will appear directly beneath the WIN DO W SW A P
command in the old window 0, which is now window 4. It may also be apparent from
this, that the current print position in each window is stored, so that even after a
WIN D 0 W S W A P, text is printed part way down the new stream 4 rather than
starting at the top. Try the following:
LOCATE #4,20,1
PRINT "this is window 0"
PRINT #4,"this is window 4"
The
'w
in d
0
w
0' message will appear on the line after the PR I
N T,
while the
'w i nd ow 4'messagewill appear at the middle of the top line of the whole screen.
Before a WIN DO W command has been issued, all eight windows cover the entire
screen. This is also true after a MOD E command has been issued - so, if after using
windows you find that the cursor ends up in a very small window, just type in
MOD E 1, as shown:
MODE 1
WINDOW 20,21,7,18
MO
DE
1
Don't worry about the word 'M 0 DE' being split up - it will still work, and don't forget
to leave a space between MOD E and 1 .
Now that you know a little about the way in which windows operate - try typing in the
following short program:
10
MODE
0
20 FOR n=0 TO 7
30 WINDOW #n,n+1,n+6,n+1,n+6
40 PAPER #n,n+4
50 CLS #n
60 FOR c=1 TO 200:NEXT c
70 NEXT n
This sets up 8 overlapping windows and clears each to a different paper colour. When
the program has finished running and 'R e a d y' appears, try pressing [RETURN] a
few times to see how the scrolling of window 0 affects the coloured blocks on the
screen. However, although these coloured blocks may be scrolling, the locations of the
other windows do not actually move. Try the following:
CLS #4
Chapter 9 Page 28
At
your
leisure ....

Advertisement

Table of Contents
loading

Table of Contents