<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Issue now reported on Mantis<br>
--Trygve<br>
<br>
On 13.11.2007 07:18, Jerome Peace wrote:
<blockquote cite="mid:322645.67586.qm@web50305.mail.re2.yahoo.com"
 type="cite">
  <pre wrap="">comeToFront


Hi Trygve and Karl,

This would be a good issue to make a mantis report.
It's clearly something that needs to be tracked. 

I've looked at the system window internals. I bet that
some serious study will need to be made before a
stable repair can be made. So a mantis report would be
a good place to collect analysis and repair attempts.

It would also be good to have a user story. What would
be a simple description of the way it should behave?

Hth,
Yours in curiosity and service, --Jerome Peace

 
***
  </pre>
  <blockquote type="cite">
    <pre wrap="">Trygve Reenskaug trygver at ifi.uio.no 
Mon Nov 12 17:34:57 UTC 2007 


Thanks Karl. I quickly wrote a hack and observed that
    </pre>
  </blockquote>
  <pre wrap=""><!---->it works in at 
  </pre>
  <blockquote type="cite">
    <pre wrap="">least one case....
Haven't the knowledge nor the time to make a firm bug
    </pre>
  </blockquote>
  <pre wrap=""><!---->fix proposal.
  </pre>
  <blockquote type="cite">
    <pre wrap="">I replaced 'TopWindow == self ifFalse: ' in the 
SystemWindows&gt;&gt;mouseDown: with:
   ((w := self world) notNil and: [w firstSubmorph
    </pre>
  </blockquote>
  <pre wrap=""><!---->== self]) ifFalse:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have no idea if it is safe to ignore TopWindow
    </pre>
  </blockquote>
  <pre wrap=""><!---->here.
  </pre>
  <blockquote type="cite">
    <pre wrap="">Cheers
--Trygve

On 12.11.2007 14:02, Karl wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Ah, the dreadful SystemWindow internals ;-)
SystemWindows&gt;&gt;mouseDown: evt

   | outerMorph |
   self setProperty: #clickPoint toValue: evt
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->cursorPoint.
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">   TopWindow == self ifFalse:
       [evt hand releaseKeyboardFocus.
       self activate].

The top window will not activate if it is the top
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->window...
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">There could be a check to see if it was the front
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->most morph as well I 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">guess.

Karl


Trygve Reenskaug wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Squeak3.10beta.7143

I have a DemoWindow, sco PasteUpMorph.
The DemoWindow opens on top.
I open a Browser, it masks part of  the
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->DemoWindow.
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">I click the DemoWindow , but have to move it to
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->make it go on top.
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">The browser doesn't go on top if I click inside
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->it, I have to click 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">its border (move it).

I set the demo window option "resist being picked
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->up".
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">It is now hard to make the demo window go on top,
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->so I add the 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">following method:

    DemoWindow &gt;&gt;mouseDown: evt
        evt yellowButtonPressed  ifTrue: [^ self 
yellowButtonActivity: evt shiftPressed].
        self eventHandler ifNotNil: [self
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->eventHandler mouseDown: evt 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">fromMorph: self].
        self comeToFront.

Now the DemoWindow goes on top when I click it (as
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->it should).
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">But the only way to make the Browser go on top is
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->to click its border 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">(move it).

I have also tried /'evt hand newKeyboardFocus:
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->self.'/ with the same 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">result.
/'self activate'/ doesn't work on a Morph (but it
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->works on a 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">SystemWindow)

What's happening?

Cheers
--Trygve

PS
I have looked at the excellent documentation in
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->'/Squeak by Example/' 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">and '/A GUIDE TO WORK WITH
SQUEAK MORPH CLASSES/', and '/An Introduction to
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->Morphic: The Squeak 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">User Interface Framework/' without finding an
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->answer. I have also 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">tried to google, but have not found anything
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->written by people who 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">knew what was happening.
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">-- 

Trygve Reenskaug      mailto: trygver at ifi.uio.no
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>
  </blockquote>
  <pre wrap=""><!---->***



      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  <a class="moz-txt-link-freetext" href="http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ">http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ</a>


  </pre>
</blockquote>
<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>