home *** CD-ROM | disk | FTP | other *** search
- {$I WINDMNGR.INC}
- {$I DEFS.PAS}
-
- var ch:char;
- j:integer;
-
- begin
- Initialize;
- Setdefs;
- ClrScr;
- Open(1);
- j:=1;
- repeat
- GotoXY(1,1);
- Write('Press 1 to open windows, 2 to close windows.');
- Repeat until keypressed;
- read(kbd,ch);
- if ((ch='1') and (j<8)) then
- begin
- j:=succ(j);
- open(j);
- end;
- if ((ch='2') and (j>0)) then
- begin
- j:=pred(j);
- remove(1);
- end
- until j=0;
- end.