<html>
<body>
In his new book on organizational patterns, Jim Coplien quotes Piet
Hein:<br>
&nbsp;&nbsp; &quot;Problems worthy of attack<br>
&nbsp;&nbsp; prove their worth by hitting back&quot;<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&gt;&gt;handleEvent: evt</i>. I see mouseDown-events,
but not mouseUp-events.<br><br>
<i>MyMorph&gt;&gt;mouseDown:</i> and <i>MyMorph&gt;&gt;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&gt;&gt;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&gt;&gt;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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mailto:
trygver@ifi.uio.no<br>
Morgedalsvn. 5A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://heim.ifi.uio.no/~trygver" eudora="autourl">
http://heim.ifi.uio.no/~trygver<br>
</a>N-0378
Oslo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel:
(+47) 22 49 57 27<br>
Norway<br>
</body>
<br>
</html>