[comp.sys.mac.hypercard] Hide the cursor when dragging a picture

helper@castle.ed.ac.uk (A Wilson) (12/04/90)

If I select a picture on a card and drag it, how can I hide the cursor?

 "set cursor to none" does not work.

Some suggested that I turn the picture into a button, how do I do this?

Any ideas?

saaf@joker.optics.rochester.edu (Lennart Saaf) (12/05/90)

In article <7431@castle.ed.ac.uk> helper@castle.ed.ac.uk (A Wilson) writes:

   If I select a picture on a card and drag it, how can I hide the cursor?

    "set cursor to none" does not work.

Here's an idea. Make a hidden button called "OKtoHide." Put this in
the script of your card (or stack):

on mousestilldown
	if the highlight of btn "OKtoHide" is true then set cursor to "none"
end mousedown

When you are doing the drag where you want the cursor to be hidden
toggle the highlight of the "OKtoHide" button:

...
set the highlight of btn "OKtoHide" to true
drag ....
set the highlight of btn "OKtoHide" to false
...

Len

--
------------------------------------------------------------------------
| Len Saaf, The Institute of Optics, Univ. of Rochester, Rochester, NY |
| Internet: saaf@joker.optics.rochester.edu        Bitnet: SAAF@UOROPT |
------------------------------------------------------------------------