home *** CD-ROM | disk | FTP | other *** search
- /**
- ** MAKEDISP
- **
- ** Build the calculator-display window
- **
- ** The function is used by mkscreen.c to build the includable frame[]
- ** array.
- **
- ** 90.05.20, for v3.0
- ** 89.01.02ram
- **/
- #include <conio.h>
- #include "rpnio.h"
- #include "helps.h" /* prototype for make_display() */
-
- char const frame[] = "\
- ╔╡ RPN ╞══════════════╦═════════╦════╗\
- ║ ║ Base ║ ║\
- ║ ╠═════════╩════╣\
- ║ ║ ║\
- ║ ─────────────────── ║ ──────────── ║\
- ║ ║ ║\
- ╠═════════════════════╩═══════╦══════╣\
- ║ Last X ║ ║\
- ╚╡ Help? F1 ╞═════════════════╩══════╝";
-
- void make_display(
- int left, int top, int right, int bottom)
- {
- window(left, top, right, bottom+1);
- textattr( (DBKGND << 4) | DBORD );
- cputs(frame);
-
- gotoxy(10, 9);
- textattr( (DBKGND << 4) | (DBORD | 0x08) );
- cputs("F1");
-
- gotoxy(2,2);
- textattr( (DBKGND << 4) | (DNUM) );
- cputs(" ");
-
- gotoxy(2,3);
- textattr( (DBKGND << 4) | (DFTN) );
- cputs(" ");
-
- gotoxy(2,4);
- textattr( (DBKGND << 4) | (DOOPS) );
- cputs(" ");
- }