home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11545 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  2.9 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
  2. From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BusyPointer ????
  5. Message-ID: <hemmer.01af@hemmer.adsp.sub.org>
  6. Date: 23 Jul 92 09:23:36 GMT
  7. References: <c8908461.711679111@jupiter.newcastle.edu.au>
  8. Organization: InterActivsion
  9. Lines: 91
  10.  
  11. In article <c8908461.711679111@jupiter.newcastle.edu.au>
  12. c8908461@jupiter.newcastle.edu.au (Robert Lang) writes:
  13.  
  14. >Can I access the BusyPointer() when my application is busy (ie. what do
  15. >I call with SetPointer()), or do I need my own ???
  16.  
  17. You need you own imagery to pass onto SetPointer().
  18.  
  19. >If I need my own...has someone got the image for the wb2 busy pointer ???
  20.  
  21. Sure do :
  22.  
  23. /*----------------------------------------------------------------------*/
  24. /*                            spWaitPointer()                           */
  25. /*----------------------------------------------------------------------*/
  26. BOOL spWaitPointer (struct Window *Win)
  27. {
  28.    /*-------------*/
  29.    /* L O C A L S */
  30.    /*-------------*/
  31.    struct IntuitionBase *IntuitionBase;
  32.    static UWORD chip WaitPointer [] =        // Designed by C=
  33.    {
  34.       0x0000, 0x0000,
  35.       0x0400, 0x07C0,
  36.       0x0000, 0x07C0,
  37.       0x0100, 0x0380,
  38.       0x0000, 0x07E0,
  39.       0x07C0, 0x1FF8,
  40.       0x1FF0, 0x3FEC,
  41.       0x3FF8, 0x7FDE,
  42.       0x3FF8, 0x7FBE,
  43.       0x7FFC, 0xFF7F,
  44.       0x7EFC, 0xFFFF,
  45.       0x7FFC, 0xFFFF,
  46.       0x3FF8, 0x7FFE,
  47.       0x3FF8, 0x7FFE,
  48.       0x1FF0, 0x3FFC,
  49.       0x07C0, 0x1FF8,
  50.       0x0000, 0x07E0,
  51.  
  52.       0x0000, 0x0000                         // Reserved, must be NULL.
  53.    };
  54.  
  55.    /*---------*/
  56.    /* C O D E */
  57.    /*---------*/
  58.    /*----------------------------------*/
  59.    /* Make sure we have a valid window */
  60.    /*----------------------------------*/
  61.    if (!Win)
  62.    {
  63.       return (FALSE);
  64.    }
  65.  
  66.    /*---------------------------*/
  67.    /* Opening intuition.library */
  68.    /*---------------------------*/
  69.    if (!(IntuitionBase = (struct IntuitionBase *)
  70.                          OpenLibrary ("intuition.library", 0L)))
  71.    {
  72.       return (FALSE);
  73.    }
  74.  
  75.    /*-------------------------------*/
  76.    /* And setting the wait pointer. */
  77.    /*-------------------------------*/
  78.    SetPointer (Win, WaitPointer, 16, 16, -6, 0);
  79.  
  80.    /*---------------------------*/
  81.    /* Closing intuition.library */
  82.    /*---------------------------*/
  83.    CloseLibrary ((struct Library *) IntuitionBase);
  84.  
  85.    return (TRUE);
  86. }
  87.  
  88. >Thanks,
  89.  
  90. You're welcome...
  91.  
  92. >Robert.
  93.  
  94. --
  95. *-------------------------------------------------------------------------*
  96. |         _   UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
  97. |         \\ _                         CBMNET: hemmer@hemmer.adsp.sub.org |
  98. | InterActi\X/ision - The name of precision                               |
  99. | Best regards                         >> Carpe Diem! - Seize the day! << |
  100. | Franz Hemmer - Software Developer.                                      |
  101. *-------------------------------------------------------------------------*
  102.