[Pharo-project] Mouse move and button down events
hilaire.fernandes at edu.ge.ch
Wed Mar 7 05:53:01 EST 2012
I did this ugly hack
self owner owner owner mouseMove: evt
I would like a cleaner way to handle it.
Le 07/03/2012 11:16, Hilaire Fernandes a écrit :
> I have two embedded morphs: a parent and a child.
> On the child I want to handle mouse down event,
> Child>>handlesMouseDown: event
> On parent I want to handle mouse down+move event:
> There are not distinct handlesMouseMove, only
> Parent>>handlesMouseDown: event
> Now, events received by child handlesMouseDown are always
> MouseButtonEvent, never MouveMoveEvent, so no chance to answer true or
> false accordingly. I guess MouseButtonEvent is catched first, then other
> mouseMove event discarded
> What I want is the child to received clic events, but the parent move
> events. It does not seem possible, am I wrong?
Dr. Geo -- http://www.drgeo.eu
More information about the Pharo-dev