Creating and grabbing buttons

Sarah sarahr at genesearch.com.au
Thu Mar 6 21:27:00 EST 2003


Hadn't thought of that wrinkle. What about just making the first 
mouseDown do all the work? Have it duplicate the bottom button and then 
grab the new button all in one go.

Cheers,
Sarah

On Friday, March 7, 2003, at 11:22  am, Scott Slaugh wrote:

> 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
>
> _______________________________________________
> 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