set the cursor to none not working in LC 7.0.3

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3193
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: set the cursor to none not working in LC 7.0.3

Post by bn » Tue Mar 28, 2017 3:11 pm

Hi Oliver,

the cursor is hidden but mouse actions are still working, e.g. mouseUp

If you lock the cursor which you have to do anyways you could add to your relevant controls

Code: Select all

if the lockCursor then exit mouseUp
You would have to add this to all of the controls and mouse-related commands but that makes sure the user does not click accidentally at a control while the cursor is "none"
From what I gather on a Mac preCocoa the hidden cursor did not trigger any mouse action whereas with Cocoa it does.

Kind regards
Bernd

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4991
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: set the cursor to none not working in LC 7.0.3

Post by dunbarx » Tue Mar 28, 2017 4:36 pm

Talk about kluges.

You might, in a mouseMove handler in the card script, while the cursor is set to "none", set the screenMouseLoc to, say, just off the top left of the card window. Then the user both cannot see the cursor, and also cannot click on anything.

The action is jerky if the cursor is visible, but this is not an issue if it is not. The handler has to work only, as I said, if the cursor is "none".

Craig

okk
Posts: 69
Joined: Wed Feb 04, 2015 11:37 am

Re: set the cursor to none not working in LC 7.0.3

Post by okk » Fri Mar 31, 2017 11:28 am

Thanks Bernd and Craig for clarification and the workarounds. I kind of remember that in the good old days "set the cursor to none" prevented unwanted clicks.

Best
Oliver

Post Reply

Return to “Mac OS”