Creating and grabbing buttons

Scott Slaugh xslaugh at hotmail.com
Thu Mar 6 20:22:01 EST 2003


I would use that, except that by the time that I am clicking the second 
time, there is a new button in that position.  I have the template button, 
and I then have the new moveable button right on top of the template button.

Scott Slaugh

>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

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the use-livecode mailing list