home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / c / cwl30 / cwl3demo / cwlfunc5.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-12  |  1013 b   |  31 lines

  1. #include "cwldemo.h"
  2.  
  3. int WinTitle(POPUP_MENU_PTR p, int sel)
  4. {
  5.   WPOINTER cw;
  6.   cw = WindowInitialize(DESKTOP_WINDOW,
  7.                         BORDER,0,0,40,2,
  8.                         BLACKONCYAN,BLACKONCYAN,SINGLEBOX);
  9.   WindowWriteCenterString(cw,"You can place titles on windows",0);
  10.   WindowWriteString(cw,"on top...",1,4);
  11.   WindowCenter(cw,VERTCENTER | HORIZCENTER);
  12.   WindowDisplay(cw,1,NOEFFECT);
  13.   delay_approx(2000);
  14.   WindowTitleTop(cw,"[ Title Left ]",TITLELEFT);
  15.   delay_approx(4000);
  16.   WindowTitleTop(cw,"[ Title Center ]",TITLECENTER);
  17.   delay_approx(4000);
  18.   WindowTitleTop(cw,"[ Title Right ]",TITLERIGHT);
  19.   WindowWriteString(cw,"or on the bottom...",1,13);
  20.   delay_approx(2000);
  21.   WindowTitleBottom(cw,"[ Title Left ]",TITLELEFT);
  22.   delay_approx(4000);
  23.   WindowTitleBottom(cw,"[ Title Center ]",TITLECENTER);
  24.   delay_approx(4000);
  25.   WindowTitleBottom(cw,"[ Title Right ]",TITLERIGHT);
  26.   delay_approx(4000);
  27.   WindowClose(cw,NOEFFECT);
  28.   return POPUP_CONTINUE;
  29.  
  30. }
  31.