home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
- From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BusyPointer ????
- Message-ID: <hemmer.01af@hemmer.adsp.sub.org>
- Date: 23 Jul 92 09:23:36 GMT
- References: <c8908461.711679111@jupiter.newcastle.edu.au>
- Organization: InterActivsion
- Lines: 91
-
- In article <c8908461.711679111@jupiter.newcastle.edu.au>
- c8908461@jupiter.newcastle.edu.au (Robert Lang) writes:
-
- >Can I access the BusyPointer() when my application is busy (ie. what do
- >I call with SetPointer()), or do I need my own ???
-
- You need you own imagery to pass onto SetPointer().
-
- >If I need my own...has someone got the image for the wb2 busy pointer ???
-
- Sure do :
-
- /*----------------------------------------------------------------------*/
- /* spWaitPointer() */
- /*----------------------------------------------------------------------*/
- BOOL spWaitPointer (struct Window *Win)
- {
- /*-------------*/
- /* L O C A L S */
- /*-------------*/
- struct IntuitionBase *IntuitionBase;
- static UWORD chip WaitPointer [] = // Designed by C=
- {
- 0x0000, 0x0000,
- 0x0400, 0x07C0,
- 0x0000, 0x07C0,
- 0x0100, 0x0380,
- 0x0000, 0x07E0,
- 0x07C0, 0x1FF8,
- 0x1FF0, 0x3FEC,
- 0x3FF8, 0x7FDE,
- 0x3FF8, 0x7FBE,
- 0x7FFC, 0xFF7F,
- 0x7EFC, 0xFFFF,
- 0x7FFC, 0xFFFF,
- 0x3FF8, 0x7FFE,
- 0x3FF8, 0x7FFE,
- 0x1FF0, 0x3FFC,
- 0x07C0, 0x1FF8,
- 0x0000, 0x07E0,
-
- 0x0000, 0x0000 // Reserved, must be NULL.
- };
-
- /*---------*/
- /* C O D E */
- /*---------*/
- /*----------------------------------*/
- /* Make sure we have a valid window */
- /*----------------------------------*/
- if (!Win)
- {
- return (FALSE);
- }
-
- /*---------------------------*/
- /* Opening intuition.library */
- /*---------------------------*/
- if (!(IntuitionBase = (struct IntuitionBase *)
- OpenLibrary ("intuition.library", 0L)))
- {
- return (FALSE);
- }
-
- /*-------------------------------*/
- /* And setting the wait pointer. */
- /*-------------------------------*/
- SetPointer (Win, WaitPointer, 16, 16, -6, 0);
-
- /*---------------------------*/
- /* Closing intuition.library */
- /*---------------------------*/
- CloseLibrary ((struct Library *) IntuitionBase);
-
- return (TRUE);
- }
-
- >Thanks,
-
- You're welcome...
-
- >Robert.
-
- --
- *-------------------------------------------------------------------------*
- | _ UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
- | \\ _ CBMNET: hemmer@hemmer.adsp.sub.org |
- | InterActi\X/ision - The name of precision |
- | Best regards >> Carpe Diem! - Seize the day! << |
- | Franz Hemmer - Software Developer. |
- *-------------------------------------------------------------------------*
-