home *** CD-ROM | disk | FTP | other *** search
- { ╒═══════════════════════════════════════════════════════╕
- │ DrawBox John Tribbett 1/88 │
- │ │
- │ This is a sample program to draw box frames with or │
- │ without shadows, that have a text window created │
- │ inside. DrawBox also shows the proper syntax of the │
- │ using the Box Frame procedures. │
- │ Note: Textbackground is called after Box. This is │
- │ to dictate the window background color in the box. │
- │ │
- ╘═══════════════════════════════════════════════════════╛
- }
- program draw_box;
- uses crt; {brace or omit this line for TPas 3.0 }
- {$I Box1.PAS}
- {$I Box2.PAS}
- {$I Box3.PAS}
- {$I Box4.PAS}
- begin
- clrscr;
- window(1,1,80,25);
- textbackground(1);
- clrscr;
-
- box3(true,6,9,76,19); {change coordinates for testing box placement}
- textbackground(3);
- clrscr;
- gotoxy(3,2);
- write('This box has a shadow');
- delay(1000);
-
- box3(false,40,5,68,10); {change coordinates for testing box placement}
- textbackground(3);
- clrscr;
- gotoxy(3,1);
- write('This box has no shadow');
- end.