<html>
<body>
In his new book on organizational patterns, Jim Coplien quotes Piet
Hein:<br>
"Problems worthy of attack<br>
prove their worth by hitting back"<br><br>
Morhic events have almost knocked me out.<br><br>
I have <i>aMyMorph</i> that is owned by <i>aScrollPane</i>, owned by
<i>aSystemWindow</i>, owned by <i>world</i>.<br><br>
I want to handle all input events in <i>MyMorph.</i> I have tried to
override <i>MyMorph>>handleEvent: evt</i>. I see mouseDown-events,
but not mouseUp-events.<br><br>
<i>MyMorph>>mouseDown:</i> and <i>MyMorph>>mouseUp:</i> both
work, but they are not called from <i>handleEvent: evt</i>.<br><br>
I inspect <i>ActiveHand </i>and see that its <i>mouseFocus </i>is usually
<i>nil</i>, but is = <i>aScrollPane </i>while the mouse is down.<br><br>
<i>Morph>>handleMouseDown: {*geniestubs-stubs}</i> may have
something to do with it??<br>
Has genie anything to do with me??<br><br>
It seems I can hack <i>ScrollPane>>handleMouseDown:</i> and
apparently make it work. Can anybody advice me how to do get all input
events to <i>aMyMorph </i>cleanly and safely?<br><br>
<br>
Thanks<br>
--Trygve<br><br>
<br>
<x-sigsep><p></x-sigsep>
-- <br><br>
Trygve Reenskaug mailto:
trygver@ifi.uio.no<br>
Morgedalsvn. 5A
<a href="http://heim.ifi.uio.no/~trygver" eudora="autourl">
http://heim.ifi.uio.no/~trygver<br>
</a>N-0378
Oslo Tel:
(+47) 22 49 57 27<br>
Norway<br>
</body>
<br>
</html>