set cursor to none --> cursor doesnt reappear

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
okk
Posts: 176
Joined: Wed Feb 04, 2015 11:37 am

set cursor to none --> cursor doesnt reappear

Post by okk » Sun Mar 01, 2020 1:32 pm

Hi, can someone verify this glitch:

Code: Select all

on mouseup
   set the cursor to none
   lock cursor
   wait 100
   unlock cursor
end mouseup
The cursor would stay hidden after script execution, it shows up evetually if I move it over a text field, but not when the text of that field is locked. Lc 9.5.0 on MacOS 10.12.6.
Thanks
Oliver

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: set cursor to none --> cursor doesnt reappear

Post by bogs » Sun Mar 01, 2020 2:33 pm

Oliver,
works as expected on 'nix, cursor disappears, comes back after the unlock. I'm curious, though, what happens if you add the line -

Code: Select all

set the cursor to arrow
at the end ?
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: set cursor to none --> cursor doesnt reappear

Post by jmburnod » Sun Mar 01, 2020 2:54 pm

Hi Oliver
Your script works as expected for me (LC 9.5, OS X 10.13)
Best regards
Jean-Marc
https://alternatic.ch

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9387
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: set cursor to none --> cursor doesnt reappear

Post by richmond62 » Sun Mar 01, 2020 3:06 pm

curse.png
-
Seems alright 'here': LiveCode 9.5.0, MacOS 10.15.4 beta 3.

I put your mouseUp script in the field.
Attachments
Cursor curse.livecode.zip
Here's the stack.
(983 Bytes) Downloaded 173 times

Post Reply

Return to “Talking LiveCode”