[ENH][FIX] Seamless Morphic-within-MVC Window

Doug Way dway at mat.net
Tue Nov 9 06:56:18 UTC 1999


Tired of seeing the clunky window-within-a-window when opening a Morphic
window from within MVC?  This changeset cleans things up so that the
Morphic SystemWindow appears more like a single MVC window.

Scamper and the ObjectExplorer benefit the most from this, since they're
easy to bring up in MVC... for example, click on the SqueakDoc link in the
Getting Started window.  But anything which uses SystemWindow>>openInMVC
will benefit.

This changeset removes the redundant titlebars, and automatically updates
the subwindow when the size of the MVC window changes, making resizing
much easier.  It leaves the outer border a little bit thicker, so you can
still tell that it's not a normal MVC window.  The effect is a little less
seamless if you are using the flop-out Morphic scrollbars, since extra
room still needs to be allocated for them.  (If for some reason you
really need to, say, grab the Morphic subwindow, you can always use the
ctrl menu.)

The enhancement is at:

http://www.mindspring.com/~dway/smalltalk/MorphicInMVC-dew.cs

This basically just adds a new method
MorphWorldView>>updateSubWindowExtent, which is called from displayView.

Also, an existing bug was fixed related to computing the inset display box
of a MorphWorldView.  The bug shows up if you resize the "Play With Me 1"
window a dozen times, for example... the inset display box for the window
creeps inward.  Not something you'd normally do, but the bug becomes much
more noticable with the above enhancement, so I fixed it in the least
obtrusive way I could think of.


- Doug Way
  dway at mat.net

I'd call myself an artist
If I could make these feelings clear
But there's a million things to think about
When you're cutting off your ear
                - Scott Miller





More information about the Squeak-dev mailing list