OK, try this,

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10454
Joined: Wed May 06, 2009 2:28 pm

OK, try this,

Post by dunbarx » Mon Feb 02, 2026 5:10 pm

Attached is a rather simple stack with a graphic and a field. There is a single handler, a "mouseLeave" handler, and it is in the graphic script.

But if one moves the cursor in an out of that graphic, the mouseLeave handler fires both in and out, as if there was a "mouseEnter" handler in existence as well.
There isn't.

Start with a slow moving cursor because funny things happen if you increase the speed that the cursor moves. Ha Ha.

Craig
Wierd mesaage.livecode.zip
(909 Bytes) Downloaded 6 times

ClipArtGuy
Posts: 262
Joined: Wed Aug 19, 2015 4:29 pm

Re: OK, try this,

Post by ClipArtGuy » Mon Feb 02, 2026 6:17 pm

dunbarx wrote:
Mon Feb 02, 2026 5:10 pm
Attached is a rather simple stack with a graphic and a field. There is a single handler, a "mouseLeave" handler, and it is in the graphic script.

But if one moves the cursor in an out of that graphic, the mouseLeave handler fires both in and out, as if there was a "mouseEnter" handler in existence as well.
There isn't.

Start with a slow moving cursor because funny things happen if you increase the speed that the cursor moves. Ha Ha.

Craig

Wierd mesaage.livecode.zip
If you set the grc to opaque, this works as expected. It appears that it fires as it exits the thin line of the vector graphic when it is not set to opaque. I tested this with a much thicker line on a non-opaque grc and this seems to be the case. Not sure if that is expected behavior or not, but that's what I am seeing.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10454
Joined: Wed May 06, 2009 2:28 pm

Re: OK, try this,

Post by dunbarx » Mon Feb 02, 2026 7:07 pm

It does work with opaque set to "true". But that should not matter. It seems to me a bug. If others agree, I will send to to QC.

This came about from a post on the use-list, where the OP want to find a message that was sent when the cursor stopped dragging in the scrollbar of a field. There is very little activity within a field's scrollBar, as opposed to a scrollbar control, where the "dragEnd" message is sent.

I thought overlaying a transparent graphic onto the field scrollbar would at least send a mouseLeave message when the cursor left that area, even though it would be better if the "dragEnd" message was supported by fields. Such a grc has to be transparent, of course.

Craig

Post Reply