AW: beginners quest: set cursor to hand

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Sep 10 06:19:23 EDT 2008


Bonjour Tiemo,

Le 10 sept. 08 à 12:08, Tiemo Hollmann TB a écrit :

> Is there any situation, where you would set the cursor to anything
> without locking it?

As soon as you set a cursor it will remain until the end of the  
handler that set it.
It's the reason why in a very short mouseDown handler, you saw the  
'hand' flashing briefly:
The default cursor is reset when the handler finishes then you have  
to lock it if you want it to remain.

But there are cases when you might want the cursor change only during  
handler execution, especially to switch it to 'watch', indicating to  
the user he has to wait.
Default cursor will be reset automatically when the handler finishes,  
e.g. when the user has no longer any reason to wait ;-)
You can use the 'busy' cursor also: see cursor, defaultCursor, lock  
and unlock cursor in the docs...

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list