Embedding Morphs into a SytemWindow

Ned Konz ned at bike-nomad.com
Mon Aug 5 01:05:53 UTC 2002


On Sunday 04 August 2002 04:43 pm, Jim Rosenberg wrote:
> Someone please tell me I'm not imagining things.
>
> I would *SWEAR* that bringing up the morph menu from the halo and
> picking "embed into" used to bring up a menu that included
> SystemWindow. Now I cannot get this to happen. Now all I'm getting
> is just PasteUpMorph or just World or sometimes both, but never
> SystemWindow.

Works for me. I know you didn't want to hear that, but here's what I 
did:

* open a browser
* drag one of my morphs on top of the browser's text area
* bring up morph halo
* click on menu handle, embed into.

I see:

PasteUpMorph
SystemWindow
AlignmentMorph
PluggableTextMorph

> What did I do? How can I put it back?

Are you putting your morph on top of the SystemWindow you want to 
embed it into? Note that this is rarely useful because of 
SystemWindow frame behavior, unless your morph is the only child of 
the window (see below).

Are you thinking about "Extras/put in a window"?

> I've upgraded my image to 3.2 gamma (4889) and installed a pretty
> recent version of NK Connectors -- don't know if either of these
> has anything to do with it.

Shouldn't.

> What is the code to embed a morph into a SystemWindow
> programmatically?

myWindow addMorph: aMorph

However, that won't look right.

What are you trying to do? You probably need to add a layout frame:

myWindow addMorph: aMorph fullFrame: aLayoutFrame.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list