On 27/5/00 11:03 pm, Jacqueline Landman Gay <[EMAIL PROTECTED]>
wrote:
> I am "dragging" an image by setting its location to the mouseloc as long
> as the mouse is down. I want a custom cursor while this operation is
> going on. I use a "send to handler" contruct to check whether the mouse
> has been released or not. I also have a mouseMove handler that checks
> the mousecontrol and sets the cursor depending on what object the mouse
> is over.
>
> While the image is moving under the mouse pointer (and the mouse is
> down,) MC never considers it to be the mousecontrol. Instead, the
> mousecontrol is considered to be whatever current object the mouse and
> the image are passing over. This means the cursor changes to the cursor
> type I've set up for the underlying objects, which isn't what I want.
> Why isn't the moving image directly under the pointer considered the
> mousecontrol? The image is large enough that the mouse is never outside
> it, even while it is being dragged.
>
> On the other hand, when the mouse is let up and the image is "dropped",
> I hide the image that was moving and then check the mousecontrol to see
> what is under it so that I can set the cursor appropriately for that
> object. The mousecontrol now always returns the original moving image
> (now hidden,) not whatever is currently under the pointer.
>
> There must be something more to the "mousecontrol" function that isn't
> documented, because it does not seem to be registering what is under the
> mouse. What am I missing?
I think your best bet is probably going to be to alter which handlers you
are using to do all of this. You probably want to do something along the
lines of using mouseEnter/mouseLeave to change the cursor rather than
mouseMove, and consider using either a mouseMove handler with
mouseDown/mouseUp/mouseRelease to set a local which tells mouseMove to move
or not, or use the "grab me" command in a mouseDown handler.
Also, it would probably be worth searching through the list archives to see
if you can find more discussion of this. Its come up a few times as I
recall and I think some sample scripts may have been posted.
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.