On Monday, Oct 25 1999, Jacqueline Landman Gay wrote:

> I have a mouseMove handler that sets the cursor depending on the control
> it is over and then locks it. The cursor is an arrow within the card,
> except when over certain field text links where it becomes a hand.
> However, this prevents the cursor from changing to the system default
> when is moved over the edges of the window, which means that on Windows
> the resize cursors never appear. (Well, sometimes they appear if you
> move in from outside the window very slowly and catch the exact pixel
> you need, but mostly they don't.)
>
> I have tried trapping "mouseLeave" in order to unlock the cursor when it
> leaves the card or the stack area, but this message does not seem to be
> sent consistently, especially if the cursor is moved away from the card
> rapidly. Sometimes it triggers and sometimes it doesn't.
>
> Has anyone figured out how to manage this? I want the user to know they
> can resize the edges of the window but I want the cursor to be
> customized within it.

We have run into this - the reliable solution is to use the pendingMessages
when you set the cursor to check every half second or so that the cursor is
still inside a stack, and if not unlock it.  Be sure not to send that
message twice or you end up sending hundreds:

on checkmouseStack
  if the mouseStack is empty then
    set the lockCursor to false
  else if checkMouseStack is not in the pendingMessages then
    send checkMouseStack to me in 500 milliseconds
  end if
end checkMouseStack

Regards,

Kevin

> --
> Jacqueline Landman Gay        |             [EMAIL PROTECTED]
> HyperActive Software          |                   [EMAIL PROTECTED]
> Custom hypermedia solutions   |         http://www.hyperactivesw.com
> 612.724.1596                  |                   612.724.1562 - fax

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.

Reply via email to