You have to lock the cursor, or it resets to default on idle as soon as the
handler finishes.
Best practice is to just set the defaultcursor, which obviates the need to lock
the cursor. Locking the cursor can lead to frozen cursors if somehow your
"unlock cursor" command fails to trigger. Very
Thank you, Peter, Mark and Neil.
Now even my cursor changes.
Ruediger
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Peter Bogdanoff
Sent: Mittwoch, 31. Juli 2013 16:59
To: How to use LiveCode
Subject: Re: Greenhorn Question
Also add
How to use LiveCode
Sent: Wed, Jul 31, 2013 11:05 am
Subject: Re: Greenhorn Question
As Peter has mentioned... something like this will work.
on mouseEnter
set the lockCursor to true
set the cursor to hand
end mouseEnter
on mouseLeave
set the lockCursor to false
end mouseLeave
Kind Rega
As Peter has mentioned... something like this will work.
on mouseEnter
set the lockCursor to true
set the cursor to hand
end mouseEnter
on mouseLeave
set the lockCursor to false
end mouseLeave
Kind Regards,
Neil Roger
-
RunRev Support Team ~ http://www.runrev.com
--
On 31/07
Hi RĂ¼diger,
The cursor changes, but is reset immediately after the handler finishes. There
are two possible solutions.
on mouseEnter
lock cursor
set the cursor to hand
end mouseEnter
on mouseEnter
set the defaultCursor to hand
end mouseEnter
--
Best regards,
Mark Schonewille
Economy-x-
Also add a line:
set the lockCursor to true
and later, when you're done:
set the lockCursor to false
Peter Bogdanoff
UCLA
On Jul 31, 2013, at 7:48 AM, Ruediger Wilhelm wrote:
> I hardly dare to ask this most likely trivial
> question to this list.
> Why does the cursor not change on my