Choose Browse Tool with click

Scott Rossi scott at tactilemedia.com
Tue Apr 12 02:29:36 EDT 2016


Not sure what you're actually building but if you don't want to use a key
press to change tools, can you simply toggle the tool?


on mouseDoubleDown
   if the tool is "browse tool" then
      choose pointer tool
   else choose browse tool
end mouseDoubleDown



Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 4/11/16, 11:12 PM, "use-livecode on behalf of Peter Bogdanoff"
<use-livecode-bounces at lists.runrev.com on behalf of bogdanoff at me.com>
wrote:

>Hi all,
>
>I have a script in a button:
>
>on mouseDoubleDown
>	choose pointer tool
>	select me
>end mouseDoubleDown
>
>I move the button around, etc.
>
>Now I want to click off of the button and choose the browse tool by just
>clicking on the card.
>
>mouseUp, and other click messages aren¹t sent because I¹m not using the
>browse tool.
>
>How might the card receive a mouse click in that mode?
>
>The mouseMove message is always sent and I can use that when the mouse
>leaves the button, but I really only want to choose the browse tool with
>a click on the card.
>
>Is there another way?
>
>Peter Bogdanoff
>UCLA
>
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list