Page 2 of 2

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

Posted: Tue Mar 28, 2017 3:11 pm
by bn
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

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

Posted: Tue Mar 28, 2017 4:36 pm
by dunbarx
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

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

Posted: Fri Mar 31, 2017 11:28 am
by okk
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