Creating and grabbing buttons

Sarah sarahr at genesearch.com.au
Thu Mar 6 19:43:01 EST 2003


Use a mouseDoubleDown handler. If the interval between clicks is too 
short, it gets trapped as a mouseDoubleDown (& Up) message but if you 
put your grab script in a mouseDoubleDown handler, it should work as 
you expect.

Cheers,
Sarah

On Friday, March 7, 2003, at 10:30  am, Scott Slaugh wrote:

> I have a bunch of buttons in a group.  In the mouseDown handler of the 
> button, it calls a handler which copies the button to the card, gives 
> it a new script, and renames the button.  In the script of the new 
> button, I have a grab command in the mouseDown handler.  The behavior 
> I am trying to get is that I double-click on the button in the group 
> and drag away, with the new button following the mouse.  However, I 
> currently have to click on the group button, then wait a second before 
> I click on the new button, otherwise I can't drag the button.  Does 
> anyone have any suggestions of how to remedy this?
>
> Scott Slaugh
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list