[comp.sys.amiga.programmer] "Busy" pointer

bruceg@crash.cts.com (Bruce Geerdes) (06/26/91)

What's the easiest way to get the "busy" pointer to come up?  The RKM's 
show one how to define his own alternate pointer, but I'd like to use the
standard one.  I'm assuming it's someone in ROM?  

peter@cbmvax.commodore.com (Peter Cherna) (06/26/91)

In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>What's the easiest way to get the "busy" pointer to come up?  The RKM's 
>show one how to define his own alternate pointer, but I'd like to use the
>standard one.  I'm assuming it's someone in ROM?  

The ROM busy pointer is in Workbench, the application.  There is no
system-integrated way to bring up the same pointer from ROM.  For now,
it's best just to clone the pointer imagery.

     Peter
--
Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"Gosh, didn't he have anything positive to say at all?"

jpotter@ucs.adelaide.edu.au (Jonathan Potter) (06/27/91)

In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>What's the easiest way to get the "busy" pointer to come up?  The RKM's
>show one how to define his own alternate pointer, but I'd like to use the
>standard one.  I'm assuming it's someone in ROM?

I understand the busy pointer is stored in the info.library. But how to get
it to appear I can't tell you.

Jon
-- 
| Jon Potter      |                              | I'd really like to      |
| P.O. Box 289    | jpotter@itd.adelaide.edu.au  |   change the world...   |
| Goodwood, SA    | FidoNet : 3:680/829          | But they won't give me  |
| Australia  5034 |                              |   the source code.      |

mks@cbmvax.commodore.com (Michael Sinz) (06/27/91)

In article <3846@sirius.ucs.adelaide.edu.au> jpotter@ucs.adelaide.edu.au (Jonathan Potter) writes:
>In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>>What's the easiest way to get the "busy" pointer to come up?  The RKM's
>>show one how to define his own alternate pointer, but I'd like to use the
>>standard one.  I'm assuming it's someone in ROM?
>
>I understand the busy pointer is stored in the info.library. But how to get
>it to appear I can't tell you.

No, it is in workbench.library currently and you can not get at it.
However, here is the current image:

static USHORT WaitPointer[] = {
    0x0000, 0x0000,	/* vert. and horiz. start posn. */
	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 */
};

/----------------------------------------------------------------------\
|      /// Michael Sinz  -  Amiga Software Engineer                    |
|     ///                   Operating System Development Group         |
|    ///   BIX:  msinz      UUNET:  rutgers!cbmvax!mks                 |
|\\\///                     When people are free to do as they         |
| \XX/                      please, they usually imitate each other.   |
\----------------------------------------------------------------------/

matija@amiga.ifi.unizh.ch (Matija Milostnik) (06/27/91)

In article <22702@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes:
>In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>>What's the easiest way to get the "busy" pointer to come up?  The RKM's 
[..]
>
>The ROM busy pointer is in Workbench, the application.  There is no
>system-integrated way to bring up the same pointer from ROM.  For now,
>it's best just to clone the pointer imagery.

This is my suggestion 
Add in intuition two new functions. 
- SetBusyPointer(Window,Mask)
  Mask would be a mask of desired IDCMP mesagges the user want to hear.
  Intuition would AND the incoming messagaes with Mask and if the result
  is NOT zero forword it to the window, else it would ReplyMsg.
- ClearBusyPointer(Window) 
  Bussinse as usual.

>Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.

Bye
 Matija


+-------------------------------------------------------+
| Q: What's the best way to catch a rabbit?             |
| A: Hide into a bush and mimic the voice of a carrot.  |
+-------------------------------------------------------+

carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) (06/28/91)

In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>What's the easiest way to get the "busy" pointer to come up?  The RKM's 
>show one how to define his own alternate pointer, but I'd like to use the
>standard one.  I'm assuming it's someone in ROM?  

Fish Disk 107 contains RJ's Programmer's Suite which includes C source
image data for a variety of Wait pointers including the 1.3 ZZZ cloud.

Also includes a canned function for displaying them - but all you
really need is SetPointer and ClearPointer (Intuition functions)
-- 
==========================================================================
 Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support
 PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn  carolyn@commodore.com

 Integer math - it's all so pointless.
==========================================================================

rjc@geech.gnu.ai.mit.edu (Ray Cromwell) (06/28/91)

In article <1991Jun27.164849.3171@ifi.unizh.ch> matija@amiga.ifi.unizh.ch (Matija Milostnik) writes:
>In article <22702@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes:
>>In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
>>>What's the easiest way to get the "busy" pointer to come up?  The RKM's 
>[..]
>>
>>The ROM busy pointer is in Workbench, the application.  There is no
>>system-integrated way to bring up the same pointer from ROM.  For now,
>>it's best just to clone the pointer imagery.
>
>This is my suggestion 
>Add in intuition two new functions. 
>- SetBusyPointer(Window,Mask)
>  Mask would be a mask of desired IDCMP mesagges the user want to hear.
>  Intuition would AND the incoming messagaes with Mask and if the result
>  is NOT zero forword it to the window, else it would ReplyMsg.
>- ClearBusyPointer(Window) 
>  Bussinse as usual.

 Add one more suggestion to that.

  BlankSystemPointer(TRUE|FALSE)
  Turn the system pointer off. Why have this function? Because
  stuff like OFF_SPRITE will break in the future when the pointer
  isn't a sprite (DIG graphics). Also, OFF_SPRITE turns off all sprites, not
  just the pointer. 

>>Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
>
>Bye
> Matija
>
>
>+-------------------------------------------------------+
>| Q: What's the best way to catch a rabbit?             |
>| A: Hide into a bush and mimic the voice of a carrot.  |
>+-------------------------------------------------------+


--
/ INET:rjc@gnu.ai.mit.edu     *   // The opinions expressed here do not      \
| INET:r_cromwe@upr2.clu.net  | \X/  in any way reflect the views of my self.|
\ UUCP:uunet!tnc!m0023        *                                              /

itch@cbnews.cb.att.com (richard.m.brack) (06/28/91)

In article <1991Jun27.235837.16962@mintaka.lcs.mit.edu>, rjc@geech.gnu.ai.mit.edu (Ray Cromwell) writes:
> In article <1991Jun27.164849.3171@ifi.unizh.ch> matija@amiga.ifi.unizh.ch (Matija Milostnik) writes:
> >In article <22702@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes:
> >>In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
> >>>What's the easiest way to get the "busy" pointer to come up?  The RKM's 
> >[..]
> >>
> >>The ROM busy pointer is in Workbench, the application.  There is no
> >>system-integrated way to bring up the same pointer from ROM.  For now,
> >>it's best just to clone the pointer imagery.
> >
> >This is my suggestion 
> >Add in intuition two new functions. 
> >- SetBusyPointer(Window,Mask)
> >  Mask would be a mask of desired IDCMP mesagges the user want to hear.
> >  Intuition would AND the incoming messagaes with Mask and if the result
> >  is NOT zero forword it to the window, else it would ReplyMsg.
> >- ClearBusyPointer(Window) 
> >  Bussinse as usual.
> 
>  Add one more suggestion to that.
> 
>   BlankSystemPointer(TRUE|FALSE)
>   Turn the system pointer off. Why have this function? Because
>   stuff like OFF_SPRITE will break in the future when the pointer
>   isn't a sprite (DIG graphics). Also, OFF_SPRITE turns off all sprites, not
>   just the pointer. 

While we're at it, let's make the busy pointer editable in prefrences!

And why did they change the ZZZ cloud in 2.0?????

> 
> >>Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
> >
> >Bye
> > Matija
> >
> >
> >+-------------------------------------------------------+
> >| Q: What's the best way to catch a rabbit?             |
> >| A: Hide into a bush and mimic the voice of a carrot.  |
> >+-------------------------------------------------------+
> 
> 
> --
> / INET:rjc@gnu.ai.mit.edu     *   // The opinions expressed here do not      \
> | INET:r_cromwe@upr2.clu.net  | \X/  in any way reflect the views of my self.|
> \ UUCP:uunet!tnc!m0023        *                                              /

RichBrack
-- 
{ the itchman cometh   /-/         _          i don't want to be your angel }
{ itch@cbnews.att.com /-/        _|_|_          i want to be your witch!    }
{ att!cbnews!itch \-\/-/         ( * )tch                 -yello            }
{                  \/\/           /^\                                       }

david@starsoft.hou.tx.us (Dave Lowrey) (06/28/91)

In article <22747@cbmvax.commodore.com> carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) writes:
>
> In article <1991Jun26.030833.9974@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes:
> >What's the easiest way to get the "busy" pointer to come up?  The RKM's
> >show one how to define his own alternate pointer, but I'd like to use the
> >standard one.  I'm assuming it's someone in ROM?
>
> Fish Disk 107 contains RJ's Programmer's Suite which includes C source
> image data for a variety of Wait pointers including the 1.3 ZZZ cloud.
>
> Also includes a canned function for displaying them - but all you
> really need is SetPointer and ClearPointer (Intuition functions)

Also, the new "AMIGA User Interface Style Guide" gives you a bitmap
drawing of the 2.0 busy pointer (the clock), so you can copy it
for your own programs.

----------------------------------------------------------------------------
These words be mine. The company doesn't care, because I am the company! :-)

      Dave Lowrey        |  david@starsoft.hou.tx.us
Starbound Software Group | "The large print giveth, the small print
      Houston, TX        | taketh away." -- Tom Waits in "Step Right Up"

peter@cbmvax.commodore.com (Peter Cherna) (06/28/91)

In article <1991Jun27.164849.3171@ifi.unizh.ch> matija@amiga.ifi.unizh.ch (Matija Milostnik) writes:

>This is my suggestion 
>Add in intuition two new functions. 
>- SetBusyPointer(Window,Mask)
>  Mask would be a mask of desired IDCMP mesagges the user want to hear.
>  Intuition would AND the incoming messagaes with Mask and if the result
>  is NOT zero forword it to the window, else it would ReplyMsg.
>- ClearBusyPointer(Window) 
>  Bussinse as usual.

Intuition already provides ModifyIDCMP() which the application can use
to choke off some or all classes of message.  There is no good reason
to combine that into SetBusyPointer().

> Matija

     Peter
--
Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"Gosh, didn't he have anything positive to say at all?"

baxter_a@wehi.dn.mu.oz (06/28/91)

In article <22730@cbmvax.commodore.com>, mks@cbmvax.commodore.com (Michael Sinz) writes:
> 
> No, it is in workbench.library currently and you can not get at it.
> However, here is the current image:
> 
> static USHORT WaitPointer[] = {
>     0x0000, 0x0000,	/* vert. and horiz. start posn. */
> 	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 */
> };

Is this the clock or the zzz cloud?

Regards  Alan

dac@prolix.pub.uu.oz.au (Andrew Clayton) (06/30/91)

In article <1991Jun28.165431.24640@wehi.dn.mu.oz>, baxter_a@wehi.dn.mu.oz writes:

> In article <22730@cbmvax.commodore.com>, mks@cbmvax.commodore.com (Michael Sinz) writes:
> > 
> > No, it is in workbench.library currently and you can not get at it.
> > However, here is the current image:
> > 
> > static USHORT WaitPointer[] = {
> >     0x0000, 0x0000,	/* vert. and horiz. start posn. */
> > 	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 */
> > };
> 
> Is this the clock or the zzz cloud?

> >     0x0000, 0x0000,	00000000000000000000000000000000
> > 	0x0400,	0x07C0, 00000100000000000000011111000000
> > 	0x0000,	0x07C0, 00000000000000000000011111000000
> > 	0x0100,	0x0380, 00000001000000000000001110000000
> > 	0x0000,	0x07E0, 00000000000000000000011111100000
> > 	0x07C0,	0x1FF8, 00000111110000000001111111111000
> > 	0x1FF0,	0x3FEC, 00011111111100000011111111101100
> > 	0x3FF8,	0x7FDE, 00111111111110000111111111011110
> > 	0x3FF8,	0x7FBE, 00111111111110000111111110111110
> > 	0x7FFC,	0xFF7F, 01111111111111001111111101111111
> > 	0x7EFC,	0xFFFF, 01111110111111001111111111111111
> > 	0x7FFC,	0xFFFF, 01111111111111001111111111111111 
> > 	0x3FF8,	0x7FFE, 00111111111110000111111111111110
> > 	0x3FF8,	0x7FFE, 00111111111110000111111111111110
> > 	0x1FF0,	0x3FFC, 00011111111100000011111111111100
> > 	0x07C0,	0x1FF8, 00000111110000000001111111111000
> > 	0x0000,	0x07E0, 00000000000000000000011111100000
> >     0x0000, 0x0000,	/* reserved, must be NULL */
> 
> Regards  Alan

Looks like it might be a clock, eh? :-)

Dac
(Gosh, is binary that hard for you folks to work out?)