I realize I should have included the object selection in the
mouseDoubleDown handler:

on mouseDoubleDown
   choose pointer tool
   select the mouseControl
end mouseDoubleDown


Also, if controls will have code that can be activated, you may want to
use the these handlers in a front script to preempt the controls' code
from firing.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 4/12/16, 3:05 AM, "use-livecode on behalf of Scott Rossi"
<use-livecode-boun...@lists.runrev.com on behalf of
sc...@tactilemedia.com> wrote:

>If I understand what you're attempting, the following should get you
>going, as long as you select an object immediately upon mouseDoubleDown.
>
>Create a backScript with the following script:
>
>on mouseDoubleDown
>   choose pointer tool
>end mouseDoubleDown
>
>on selectedObjectChanged
>   if the mouseControl is empty then choose browse tool
>end selectedObjectChanged
>
>
>When the pointer tool is enabled and you click between objects, you should
>continue to select whatever is clicked, until clicking on the card, which
>should then switch to the browse tool.
>
>Note that the mouseDoubleDown trigger won't work with an unlocked field.
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX/UI Design
>
>
>
>
>On 4/12/16, 2:24 AM, "use-livecode on behalf of Peter Bogdanoff"
><use-livecode-boun...@lists.runrev.com on behalf of bogdan...@me.com>
>wrote:
>
>>Thanks, Scott that works…however...
>>
>>I’m experimenting with a tool interface for an application where the user
>>works with buttons, fields, and draw objects (sort of like Apple Pages or
>>Preview). I'm seeing if I can come up with a simple tool strategy that
>>doesn’t require the user to keep track of, or even know which tool is
>>chosen, only that the object can be edited (selected, moved and resized)
>>by something other than a normal single click. Then, clicking off the
>>object would set things back to normal run. Fields might be selected by a
>>single click and text changed by a double click (as in Preview).
>>
>>Has anyone tried this kind of interface?
>>
>>Peter
>>
>>
>>On Apr 11, 2016, at 11:29 PM, Scott Rossi <sc...@tactilemedia.com> wrote:
>>
>>> 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-boun...@lists.runrev.com on behalf of bogdan...@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@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>>subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>_______________________________________________
>>use-livecode mailing list
>>use-livecode@lists.runrev.com
>>Please visit this url to subscribe, unsubscribe and manage your
>>subscription preferences:
>>http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to