Mouse messages while down
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Mar 18 08:25:55 EDT 2007
Sarah,
400 individual buttons is bad design. Draw a grid and use a mouseDown
handler if you want to store the clicked location. Use the
mouseRelease handler to get the new location. Calculate in which
rectangle the new mouseLoc is, without a repeat loop. I am sure you
can do this.
Best regards,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 18-mrt-2007, om 8:12 heeft Sarah Reichelt het volgende geschreven:
> The top of your head worked fine thanks Jacque :-)
>
> I'm now doing the politically correct mouseMove instead of using
> repeat while mouse is down. But it still leaves me having to check the
> location all the time to see whether it is inside one of my 400
> buttons. It seems that the mouseControl should be able to report where
> the mouse is without me having to check it manually. But mouseControl
> gets stuck when you click down and never changes until the mouse comes
> up again.
>
> Thanks to everyone for their thoughts and suggestions.
>
> Cheers,
> Sarah
More information about the use-livecode
mailing list