Page 1 of 1
Set the cursor...
Posted: Wed May 25, 2011 2:52 pm
by MMoeller
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
Re: Set the cursor...
Posted: Wed May 25, 2011 3:00 pm
by Klaus
Hi Malte,
try the other way round (andersrum

)
First set the cursor, then lock it.
Best
Klaus
Re: Set the cursor...
Posted: Wed May 25, 2011 3:08 pm
by MMoeller
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
Re: Set the cursor...
Posted: Wed May 25, 2011 3:20 pm
by Klaus
Hi Malte,
sorry, no idea, tested on my Mac
However it SHOULD work on Windows, too!
Best
Klaus
Re: Set the cursor...
Posted: Thu May 26, 2011 9:46 am
by MMoeller
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
Re: Set the cursor...
Posted: Thu May 26, 2011 12:02 pm
by Klaus
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
Re: Set the cursor...
Posted: Thu May 26, 2011 6:56 pm
by jacque
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?
Re: Set the cursor...
Posted: Fri May 27, 2011 9:38 am
by MMoeller
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
Re: Set the cursor...
Posted: Fri May 27, 2011 11:41 am
by Klaus
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
Re: Set the cursor...
Posted: Fri May 27, 2011 4:03 pm
by SparkOut
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?
Re: Set the cursor...
Posted: Thu May 31, 2012 10:10 am
by MMoeller
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
Re: Set the cursor...
Posted: Thu May 31, 2012 10:59 am
by Klaus
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
Re: Set the cursor...
Posted: Thu May 31, 2012 12:28 pm
by MMoeller
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