What is up with "lock Cursor"?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: What is up with "lock Cursor"?
Aha.
In the previous setup, if I do not lock the cursor, it barely ever changes as I move around within the button. It has fleeting instances where it does, but they are really fleeting.
So locking the cursor does indeed have an effect, but you have to work hard to find it. And it proves even more strongly that it is the loc that matters, not the command.
Craig
In the previous setup, if I do not lock the cursor, it barely ever changes as I move around within the button. It has fleeting instances where it does, but they are really fleeting.
So locking the cursor does indeed have an effect, but you have to work hard to find it. And it proves even more strongly that it is the loc that matters, not the command.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What is up with "lock Cursor"?
Idle is sent all the time, but you won't notice it unless you trap it, like any other message. But it's a remnant of HC and is usually not a good way to handle repeated activities. Idle occurs in the pauses between handlers and is when the engine does its housekeeping. "Wait with messages" also allows an idle for example.dunbarx wrote: ↑Thu May 09, 2024 7:14 pm"Idle" is not sent unless there is an actual idle handler somewhere. Thank heavens. Didn't HC sent them always?
Anyway, it seems that the cursor only stays locked based on its remaining within the object from whence it was changed. If in the card script, it will happily roam around all over, until, that is, it enters any other control.
Anyway, the behavior you're seeing is the bug. Since Richmond can keep a custom cursor after locking it, and since he's using older copies of LC, it looks like the problem was introduced somewhere around the time version 9.x was released.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9476
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is up with "lock Cursor"?
I have this working with LC 9.6.3
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: What is up with "lock Cursor"?
@Jacque. The dictionary states:
Craig
@Richmond. Can you send a stack that shows it? None of your others do, irrespective of the LC version.Note: If there is no idle handler anywhere in the message path, no idle message is sent.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 138
- Joined: Wed Aug 26, 2009 7:42 pm
- Location: Randolph, MA USA
- Contact:
Re: What is up with "lock Cursor"?
If this hasn't already been mentioned, there is a open bug report about Lock Cursor from June 2019. See https://quality.livecode.com/show_bug.cgi?id=22211
There was a cumminity developed fix done in May 2020 (AWAITING_MERGE) that - becuase of the end of the open source version or other reasons - has never been incorporated into Livecode.
Even if they can legally pull the GIT code, you would think they could recreate the fix and knock this bug off the list.
There was a cumminity developed fix done in May 2020 (AWAITING_MERGE) that - becuase of the end of the open source version or other reasons - has never been incorporated into Livecode.
Even if they can legally pull the GIT code, you would think they could recreate the fix and knock this bug off the list.
Paul Dupuis
Researchware, Inc.
Researchware, Inc.
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: What is up with "lock Cursor"?
Paul.
This surely is still a bug in the latest versions of LC. I would have thought it would get priority, since it is old, present at such a basic level, and I bet, unlike myself, many users change cursors often.
Craig
This surely is still a bug in the latest versions of LC. I would have thought it would get priority, since it is old, present at such a basic level, and I bet, unlike myself, many users change cursors often.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What is up with "lock Cursor"?
Ah. I stand corrected. The engine still uses it though.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: What is up with "lock Cursor"?
Odd, I think. Deesn't the engine already know what time it is and what is or is not happening in its environment? Why is it talking to itself? Not a good sign.The engine still uses it though.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What is up with "lock Cursor"?
Well, it doesn't actually send the message to itself, but it does use the time when the app is idle to do housekeeping. And we typically call that an idle period. So there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9785
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: What is up with "lock Cursor"?
Jacque.
I am idle most of the day. And I do talk to myself. And I never send messages to myself, because I will never read them.
But you, who were the one decades ago who taught me never to use idle messages unless nothing else would do (this was in HC, way before we had "send in time") cannot all of a sudden tell me you were talking about the way a computer works, as opposed to how my brain works, when speaking not of the idle message, but of the idle time.
There. So?
Craig
I am idle most of the day. And I do talk to myself. And I never send messages to myself, because I will never read them.
But you, who were the one decades ago who taught me never to use idle messages unless nothing else would do (this was in HC, way before we had "send in time") cannot all of a sudden tell me you were talking about the way a computer works, as opposed to how my brain works, when speaking not of the idle message, but of the idle time.
There. So?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What is up with "lock Cursor"?
My dear Craig.
I concede -- but only because I can't best your clever rhetoric. May all your idle times be rejuvenating. Meanwhile I stand firm on the concepts.
I concede -- but only because I can't best your clever rhetoric. May all your idle times be rejuvenating. Meanwhile I stand firm on the concepts.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com