Skip to main content



      Home
Home » Eclipse Projects » GEF » How to capture mouseReleased event for a MouseMotionListener
How to capture mouseReleased event for a MouseMotionListener [message #116800] Tue, 10 February 2004 09:03 Go to next message
Eclipse UserFriend
Originally posted by: dave.derry.equifax.com

I have an object that implements both MouseListener and
MouseMotionListener. In the mouseDragged method I set a variable that is
checked in the mousedReleased method. But the mouseReleased method
doesn't get called. It seems that the MouseMotion captures the mouse.
How can I determine when the button has been released.

I've tried testing my variable in the mouseHover method, but this isn't
acceptable because of the delay in hover, and because it gets trigggered
even if the button is not released.

TIA,
Dave Derry
Re: How to capture mouseReleased event for a MouseMotionListener [message #117149 is a reply to message #116800] Wed, 11 February 2004 15:21 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Currently you must call MouseEvent.consume() to indicate that you want to
capture mouse events on mouse down.

"Dave Derry" <dave.derry@equifax.com> wrote in message
news:c0ao6s$agq$1@eclipse.org...
> I have an object that implements both MouseListener and
> MouseMotionListener. In the mouseDragged method I set a variable that is
> checked in the mousedReleased method. But the mouseReleased method
> doesn't get called. It seems that the MouseMotion captures the mouse.
> How can I determine when the button has been released.
>
> I've tried testing my variable in the mouseHover method, but this isn't
> acceptable because of the delay in hover, and because it gets trigggered
> even if the button is not released.
>
> TIA,
> Dave Derry
>
Previous Topic:I20040205 + M6 -> 100% cpu usage on gtk
Next Topic:Multi page editor & actions
Goto Forum:
  


Current Time: Mon May 05 23:33:54 EDT 2025

Powered by FUDForum. Page generated in 0.03974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top