home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Spin Cursor Lib / test.c < prev   
Encoding:
C/C++ Source or Header  |  1992-09-05  |  400 b   |  31 lines  |  [TEXT/KAHL]

  1. /* test! */
  2.  
  3. #include "SpinCursor.h"
  4.  
  5. void main (void);
  6.  
  7. void
  8. main (void)
  9. {
  10.     short int    i;
  11.     CursErr        err;
  12.     
  13.     InitGraf (&thePort);
  14.     InitFonts ();
  15.     FlushEvents (everyEvent, 0);
  16.     InitWindows ();
  17.     InitMenus ();
  18.     TEInit ();
  19.     InitDialogs (nil);
  20.     InitCursor ();
  21.             
  22.     err = BeginResSpinning (128);
  23.     
  24.     FlushEvents (everyEvent, 0);
  25.     
  26.     while (!(Button ()))
  27.         ;
  28.     
  29.     err = StopSpinning ();    
  30.     if (err) SysBeep (1);
  31. }