<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Squeak3.10beta.7143<br>
<br>
I have a DemoWindow, sco PasteUpMorph.<br>
The DemoWindow opens on top.<br>
I open a Browser, it masks part of&nbsp; the DemoWindow.<br>
I click the DemoWindow , but have to move it to make it go on top.<br>
The browser doesn't go on top if I click inside it, I have to click its
border (move it).<br>
<br>
I set the demo window option "resist being picked up".<br>
It is now hard to make the demo window go on top, so I add the
following method: <br>
<br>
&nbsp;&nbsp;&nbsp; DemoWindow &gt;&gt;mouseDown: evt <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; evt yellowButtonPressed&nbsp; ifTrue: [^ self yellowButtonActivity:
evt shiftPressed].<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self eventHandler ifNotNil: [self eventHandler mouseDown: evt
fromMorph: self].<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self comeToFront.<br>
<br>
Now the DemoWindow goes on top when I click it (as it should). <br>
But the only way to make the Browser go on top is to click its border
(move it).<br>
<br>
I have also tried <i>'evt hand newKeyboardFocus: self.'</i> with the
same result.<br>
<i>'self activate'</i> doesn't work on a Morph (but it works on a
SystemWindow)<br>
<br>
What's happening? <br>
<br>
Cheers<br>
--Trygve<br>
<br>
PS <br>
I have looked at the excellent documentation in '<i>Squeak by Example</i>'
and '<i>A GUIDE TO WORK WITH <br>
SQUEAK MORPH CLASSES</i>', and '<i>An Introduction to Morphic: The
Squeak User Interface Framework</i>' without finding an answer. I have
also tried to google, but have not found anything written by people who
knew what was happening.<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

Trygve Reenskaug      mailto: <a class="moz-txt-link-abbreviated" href="mailto:trygver@ifi.uio.no">trygver@ifi.uio.no</a>
Morgedalsvn. 5A       <a class="moz-txt-link-freetext" href="http://folk.uio.no/trygver">http://folk.uio.no/trygver</a>
N-0378 Oslo           Tel: (+47) 22 49 57 27
Norway 
 </pre>
</body>
</html>