I hate mousedown

Alex Tweedly alex at tweedly.net
Wed Apr 27 16:07:38 CDT 2005


Thomas McGrath III wrote:

> Jonathan,
>
> I have a palette of 18 buttons that I want to act upon once a mouse 
> down has been pressed. SO if I press the mouseDown I want to move from 
> btn to btn and see a label for that btn and do some other things. But 
> any messages are sent back to the original control that received the 
> mouseDown including the mouseUp, mousewithin, mouseenter, mouseleave, 
> mousestilldown etc. Even the mousemove gets sent.
>
> I had to use a mouseDown with a call to another message and do a 'send 
> in'. Then I had to do a 'if the mouse is up' and a 'if the mouse is 
> down' in order to do what I need. But now it only works sporadically.
>
> I just need a Down message that works when the mouse is down and KNOWS 
> what btn it is over.
>
Thomas - did you get a chance to try the script I sent on Friday ?
As far as I can see it does everything you need, in a very simple manner.

If it doesn't - let me know and I'll see if it can be tweaked ....


-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 25/04/2005



More information about the use-livecode mailing list