Richmond wrote:

Answering his own question yet again:

on mouseEnter
   set the lockCursor to true
   set the cursor to none
end mouseEnter

on mouseLeave
   set the cursor to arrow
   set the lockCursor to false
end mouseLeave

not very well documented.

Many seeming oddities in the language are merely conventions established by the HyperCard team. IIRC the need to lock the cursor to have it maintained after idle is one of them (though personally it makes sense to me; seems more convenient than needing to explicitly unlock).

In this case it seems the LC team tried to document it - from the Dictionary entry for "cursor":

    If the lockCursor property is set to false, LiveCode automatically
    sets the cursor according to its location once the handler finishes.
    (For example, the cursor normally turns into an arrow over a menu,
    an I-beam over an editable text field, and so on.) To retain the
cursor property after a handler finishes, use the lock cursor command.

--
 Richard Gaskin
 Fourth World Systems
 LiveCode training and consulting: http://www.fourthworld.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to