Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Wed May 25, 2011 2:52 pm
Hi all,
I like to hide the cursor on a Windows XP System with the following script:
Code: Select all
on mouseDown
set the lockCursor to true
set the cursor to none
end mouseDown
But it does not change the cursor. It works with "to busy/hand/etc." but not with none. Am I doing something terribly wrong?
Thanks a lot in advance!
Malte
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed May 25, 2011 3:00 pm
Hi Malte,
try the other way round (andersrum

)
First set the cursor, then lock it.
Best
Klaus
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Wed May 25, 2011 3:08 pm
Hi Klaus,
thanks for quick answer (as usual

), but it does not work even with reverse command lines. The cursor does not change. Do I need a repeat loop or something for this on Windwos Systems? It works perfectly on my Mac with your suggestion.
Any other ideas?
Cheers,
Malte
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed May 25, 2011 3:20 pm
Hi Malte,
sorry, no idea, tested on my Mac
However it SHOULD work on Windows, too!
Best
Klaus
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Thu May 26, 2011 9:46 am
Hi Klaus,
ok - I will try to get some answers from trial-and-error

Can't image a reason why it should not work. Perhaps system preferences of Windows XP?
Cheers,
Malte
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Thu May 26, 2011 12:02 pm
Hi Malte,
I don't think that this is a system setting!
You could try to create an "empty" image (PNG with only Alpha channel)
set the cursor to this image. At least worth a try.
Best
Klaus
-
jacque
- VIP Livecode Opensource Backer

- Posts: 7393
- Joined: Sat Apr 08, 2006 8:31 pm
-
Contact:
Post
by jacque » Thu May 26, 2011 6:56 pm
I've used the command a lot in Windows and it has always worked. The order of lockcursor and "set cursor" doesn't matter. I've tested on XP through Vista, though my stack was compiled with an earlier engine version.
It isn't a system setting, the engine handles the cursor display. Are you sure you don't have another handler somewhere that is intercepting and changing the cursor? Does it work if you create a new, blank stack with only that single command in a button script?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Fri May 27, 2011 9:38 am
Hi Jacque & Klaus,
I figured that the problem was a missing library containinf the RevCursors. I restored it and now it works!
Thanks for your testing!
Malte
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri May 27, 2011 11:41 am
Hi Malte,
glad you got it working!
I'm still wondering why on earth one would need a library to set the cursor to "NONE"???
Best
Klaus
-
SparkOut
- Posts: 2947
- Joined: Sun Sep 23, 2007 4:58 pm
Post
by SparkOut » Fri May 27, 2011 4:03 pm
Actually, setting the cursor to none doesn't work for me, and I have the cursor library in place... I think. What exactly did you restore to where?
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Thu May 31, 2012 10:10 am
Hi all,
about one year and several versions of LiveCode later, I came upon the same problem. But I'm as puzzled as last time. I restored the RevCursor-database last time to solve my problem but this time, it is in place but I still can not set the cursor to none with liveCode 5.5 on a Windows XP SP3 system. It works perfectly on my Mac with this button script:
Code: Select all
on mouseUp
set the cursor to none
lock cursor
end mouseUp
Any ideas? Is it possible to set the cursor to a transparent image as a "workaround"?
Cheers,
Malte
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Thu May 31, 2012 10:59 am
Hi Malte,
I also experienced this a couple of days before and I think "set cursor to none" just don't work on Windows.
And yes, using a transparent PNG as the "none" cursor "should" work
Best
Klaus
-
MMoeller
- Posts: 13
- Joined: Tue Apr 19, 2011 12:30 pm
Post
by MMoeller » Thu May 31, 2012 12:28 pm
Hi Klaus,
thank you for the quick answer. Perhaps they fix it in an upcoming version. To bypass the problem I set the cursor to an image with the size of 1 x 1 pixel.
Again, thanks for the help!
Malte