Re: Cursor

Scott Raney (raney@metacard.com)
Tue, 26 Aug 1997 15:00:24 -0600 (MDT)

On Tue, 26 Aug 1997, Simon Lord wrote:

> In SuperCard, adding and setting a cursor was quite easy.

That's because cursors are stored as resources on the Mac, and the Mac
has a very elaborate and flexible system for creating and managing
resources (it doesn't have much go do with SuperCard). Unfortunately,
resource management on Windows and X11 systems is far more difficult.

> As such I
> have taken that same ease and placed a 32x32 icon of a recycle logo into
> the Cursor stack. However I cannot execute -set the cursor to
> "recycle"- without generating an error, yet setting the cursor to watch,
> arrow etc work fine from that same stack. I tried using the ID of the
> image, then moving the resources of MetaCard Cursors and Icons to my
> project - still without result.

Setting the the cursor to the id of the image is the right thing to
do. Note that cursors have to be stored in MetaCard's native image
format to work, so you'll have to edit it on a UNIX system if you
imported it as a GIF or something. No need to import your cursor into
the "Cursors" stack, it'll find it anywhere you put it.

The only other potential conflict is the ids: you'll probably need to
set the id of the image to some value not being used by any other
image (pick some large number and start counting up from there). Also
note that 32x32 cursors are deprecated (i.e., you shouldn't use them
any more) because 16x16 is the only cursor size that will be portable
to the Mac.
Regards,
Scott

> Cheers,
> Simon
>
> --
> [---------------------------------] Simon Lord
> [No matter how idiot proof you try] Database Engineer, CAE Electronics
> [to make any product, there will ] tel: (514) 341-2000 x3861
> [always be two people somewhere in] fax: (514) 340-5496
> [the world working hard at making ]
> [a bigger and better idiot. ]
> [---------------------------------] email: simonl@cae.ca

**********************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Only 1% of computer users know a programming language...
MetaCard: We can change all that.