home *** CD-ROM | disk | FTP | other *** search
- /* EXAMPLE 5: PERMMODE window
- ----------------------------------------------------------------------*/
- #include <conio.h>
- #include <dos.h>
- #include "wndwc21.h"
-
- void main()
- {
- qinit();
- initwindow( LIGHTGRAY_BG, 0, 0 ); /* No need to clear screen */
- setwindowmodes( PERMMODE );
- makewindow( 1, 1, 12, 80, WHITE+BLUE_BG, CYAN+BLUE_BG, SINGLE_BORDER,
- WINDOW1 );
- titlewindow( TOP, LEFT, YELLOW+BLUE_BG, " Input Window " );
- makewindow( 13, 1, 13, 80, WHITE+GREEN_BG, GREEN_BG, HDOUBLE_BORDER,
- WINDOW2 );
- titlewindow( TOP, LEFT, YELLOW+GREEN_BG, " Output Window " );
- wwrite( 1, 1, "Output data." );
- accesswindow( WINDOW1 );
- wwrite( 1, 1, "Input data." );
- getch();
- }
-