How to change cursor with ctrl and shift?

Sakari Ruoho sakari.ruoho at academica.com
Mon Jan 14 07:15:57 EST 2008


Wow! Thank you! Never even noticed mouseWithin handler or ignored it..  
Problem solved


On Jan 14, 2008, at 1:40 PM, Eric Chatonet wrote:

> Hi Sakari,
>
> Le 14 janv. 08 à 12:07, Sakari Ruoho a écrit :
>
>> Hello folks,
>>
>> Was wondering how to change the mouse cursor behavior, when user  
>> presses either ctrl or shift key? Like in photoshop with select  
>> tool where u can add to selection by pressing shift and remove from  
>> selection by pressing ctrl? If anyone has implemented anything like  
>> this, any help would be appreaciated. Thank you!
>>
>> Sakari Ruoho
>> Software Designer
>> sakari.ruoho at academica.com
>
> To achieve this you can use a mouseWithin handler:
>
> on mouseWithin
>  if the shiftKey is dow then set the cursor to x
>  else if the optionKey is down then set the cursor to y
>  else set the cursor to z
>  lock cursor
> end mouseWithin
> -------------------------------------
> on mouseLeave
> unlock cursor
> end mouseLeave
>
> By default mouseWithin will be sent every 200 ms but you can adjust  
> this value by setting the idleRate (or idleTicks) property.
>
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
> Email: eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Sakari Ruoho
Software Designer
sakari.ruoho at academica.com






More information about the use-livecode mailing list