<html>
<body>
<font size=3>Hernán,<br>
Many thanks for your quick reply.<br><br>
The problem was that TwoWayScrollPane>>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> </x-tab><br>
<x-tab> </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> </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> </x-tab>BTW, you
can always from the event handler send the #activate<br>
message to the SystemWindow yourself.<br><br>
> -----Original Message-----<br>
> From: Trygve<br>
> <br>
> I have a SystemWindow<br>
> containing a TwoWayScrollPane<br>
> containing a PasteUpMorph<br>
> <br>
> The window is activated (moved to the top) if I click the <br>
> SystemWindow header.<br>
> It is not activated if I click in a visible corner of the <br>
> PasteUpMorph.<br>
> <br>
> I have tried making the PasteUpMorph keep the event <br>
> WasHandeled at =false,<br>
> but it doesn't help.<br>
> <br>
> Any ideas?<br>
> Cheers<br>
> --Trygve</blockquote><br>
<x-sigsep><p></x-sigsep>
-- <br><br>
Trygve Reenskaug mailto: trygver <at>
ifi.uio.no<br>
Morgedalsvn. 5A
<a href="http://heim.ifi.uio.no/~trygver" eudora="autourl">http://heim.ifi.uio.no/~trygver</a><br>
N-0378 Oslo
Tel: (+47) 22 49 57 27<br>
Norway<br>
</font></body>
<br>
</html>