<html>
<body>
<font size=3>Hernán,<br>
Many thanks for your quick reply.<br><br>
The problem was that TwoWayScrollPane&gt;&gt;handlesMouseDown: returned
true and the event did not reach up to the SystemWindow.<br>
Changing it to false solved the problem.<br><br>
Jacaranda was my starting point for the present programs, but I have
tried to simplify the morph structure. Corresponding to my three levels,
I find 6 levels in Jacaranda:<br><br>
a SystemWindow<br>
a Morph (Morph default)<br>
a Diagram (handlesMouseDown: returns evt yellowButtonPressed, i.e.,
false)<br>
a TwoWayScrollPane (handlesMouseDown: returns true)<br>
a TransformMorph (Morph default)<br>
a HJPasteUpMorph (handlesMouseDown: returns true)<br><br>
I haven't quite penetrated the rationale behind the many layers in
Jacaranda, but it seems as if I could have introduced a dummy layer below
the SystemWindow for the purposes of returning false. My solution is to
use my own sco of TwoWayScollPane that returns true. This may be a hack
since I there may be a deep reason for ScrollPanes to return
true.<br><br>
Problem resolved. Many thanks for putting me on the right track<br>
--Trygve<br><br>
-----------------------------------------------<br>
At 16.08.2004 11:34, Hernán wrote:<br><br>
<blockquote type=cite class=cite cite>Hi Trygve, <br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>You should
check DiagramBrowser. In there I have the same<br>
structure than you (SystemWindow, TwoWayScrollPane and PasteUpMorph)
but<br>
without the problem you are describing.<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>How are
you handling the events? With #on:send:to: or overriding<br>
#handlesMouseDown: and #mouseDown: ? Because If you return false in<br>
#handlesMouseDown: I am pretty sure that the event should reach the<br>
SystemWindow and get it activated.<br><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>BTW, you
can always from the event handler send the #activate<br>
message to the SystemWindow yourself.<br><br>
&gt; -----Original Message-----<br>
&gt; From: Trygve<br>
&gt; <br>
&gt; I have a SystemWindow<br>
&gt;&nbsp;&nbsp;&nbsp; containing a TwoWayScrollPane<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; containing a PasteUpMorph<br>
&gt; <br>
&gt; The window is activated (moved to the top) if I click the <br>
&gt; SystemWindow header.<br>
&gt; It is not activated if I click in a visible corner of the <br>
&gt; PasteUpMorph.<br>
&gt; <br>
&gt; I have tried making the PasteUpMorph keep the event <br>
&gt; WasHandeled at =false,<br>
&gt; but it doesn't help.<br>
&gt; <br>
&gt; Any ideas?<br>
&gt; Cheers<br>
&gt; --Trygve</blockquote><br>
<x-sigsep><p></x-sigsep>
-- <br><br>
Trygve Reenskaug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mailto: trygver &lt;at&gt;
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</a><br>
N-0378 Oslo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tel: (+47) 22 49 57 27<br>
Norway<br>
</font></body>
<br>
</html>