Morphic events

Trygve Reenskaug trygver at ifi.uio.no
Mon Jun 13 13:18:28 UTC 2005


In his new book on organizational patterns, Jim Coplien quotes Piet Hein:
    "Problems worthy of attack
    prove their worth by hitting back"

Morhic events have almost knocked me out.

I have aMyMorph that is owned by aScrollPane, owned by aSystemWindow, owned 
by world.

I want to handle all input events in MyMorph. I have tried to override 
MyMorph>>handleEvent: evt. I see mouseDown-events, but not mouseUp-events.

MyMorph>>mouseDown: and MyMorph>>mouseUp: both work, but they are not 
called from handleEvent: evt.

I inspect ActiveHand and see that its mouseFocus is usually nil, but is = 
aScrollPane while the mouse is down.

Morph>>handleMouseDown: {*geniestubs-stubs} may have something to do with it??
Has genie anything to do with me??

It seems I can hack ScrollPane>>handleMouseDown: and apparently make it 
work. Can anybody advice me how to do get all input events to aMyMorph 
cleanly and safely?


Thanks
--Trygve



-- 

Trygve Reenskaug      mailto: trygver at ifi.uio.no
Morgedalsvn. 5A       http://heim.ifi.uio.no/~trygver
N-0378 Oslo           Tel: (+47) 22 49 57 27
Norway

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050613/b55ce5ba/attachment.htm


More information about the Squeak-dev mailing list