Re: MouseTrap Crash

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu