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

  1. #include "cwldemo.h"
  2.  
  3. int WinEffects(POPUP_MENU_PTR p, int sel)
  4. {
  5.   WPOINTER cw;
  6.   WPOINTER wEffects;
  7.   int i;
  8.   cw = WindowInitialize(DESKTOP_WINDOW,
  9.                         BORDER,0,0,50,2,
  10.                         BLACKONCYAN,BLACKONCYAN,SINGLEBOX);
  11.   WindowWriteCenterString(cw,"You can display a window with various effects...",0);
  12.   WindowCenter(cw,VERTCENTER | HORIZCENTER);
  13.   WindowDisplay(cw,1,NOEFFECT);
  14.   delay_approx(5000);
  15.  
  16.   wEffects = WindowInitialize(DESKTOP_WINDOW,BORDER,0,0,60,20,0x70,0x70,
  17.                               DOUBLEBOX);
  18.   WindowCenter(wEffects, VERTCENTER | HORIZCENTER);
  19.   for (i = 0; i < 16; i++)
  20.   {
  21.     WindowClear(cw);
  22.     WindowWriteCenterString(cw, EffectStr[i], 0);
  23.     WindowDisplay(wEffects,2,i);
  24.     delay_approx(3000);
  25.   }
  26.   WindowClose(cw,NOEFFECT);
  27.   WindowClose(wEffects, NOEFFECT);
  28.  
  29.   return POPUP_CONTINUE;
  30. }
  31.