home *** CD-ROM | disk | FTP | other *** search
- #include "window.h"
- #define NORM CREATE_VIDEO_ATTRIBUTE(black,white) /* define video
- attribute */
- #define BLUEONBLACK CREATE_VIDEO_ATTRIBUTE(black,blue) /* define
- video attribute */
- main()
- {
- WPOINTER w; /* pointer to a window structure */
- WindowInitializeSystem(); /* system initialization function */
- WindowSaveInitial(0);
- w = WindowInitialize(BORDER,1,1,30,15,BLUEONBLACK,NORM,SINGLEBOX);
- WindowOpen(w); /* display window on the screen */
- WindowWriteString(w,"Press a key to move me",1,1);
- WindowDisplay(w,1,NOEFFECT);
- GET_KEY();
- WindowMove(w,12,14); /* move the window to row 12, column 14 of the
- screen */
- }
-