Re: MouseTrap Crash
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 07, 2004
- 379 views
cklester wrote: > > Derek Parnell wrote: > > > > cklester wrote: > > > > > > Derek, in case this will be helpful... I'm clicking on a mousetrap I've > > > set and getting this error... > > > > [snip] > > > > I suspect you are calling updateMouseTrap somewhere and the third > > parameter to that is not correct. > > That was a good clue. Actually, it was when I created the mouseTrap, > I was passing a sequence of four sequences (points)... But that's > fixed and it works. Great! > Now, when I click on the mouseTrap area, wouldn't returnValue(-1) > prevent the click from going through to the underlying controls? It > doesn't seem to be stopping the click. I get a click response for > the mousetrap, but the underlying window also receives the click > although I've used returnValue(-1) in the mousetrap click code. Well it has never been documented that that would be the behaviour of a mousetrap event handler. But if that is a need you have, I can see what I can do. -- Derek Parnell Melbourne, Australia