[Q] SystemWindow addMorph: frame:

Blacktooth bt at whitestar.soark.net
Fri Dec 3 17:32:34 UTC 1999


> >What is frame: expecting?
> >
> >I've tried a couple of different things, but can't get it to wrap
> >around my morph correctly.
> 
> The #frame: part of #addMorph:frame: is a Rectangle used to specify the size and location of the morph being added relative to the area of the SystemWindow below the label. It is used by the various browsers, e.g., to position the various panes in a way that they retain the same proportions as the window is resized. 
> 
> If you are trying to create visual border around a Morph, the answer is to use the #borderWidth: and #borderColor: that all descendents of BorderedMorph inherit or to enclose the morph in another, larger, morph that would provide the desired visual effect.

Thanks. I finally figured out frame: by investigating the TelnetMachine.

Ultimately it wasn't my problem. I managed to get it to work by kludging
openInWorldExtent:. 

SystemWindow just didn't behave the way I expected.


BT





More information about the Squeak-dev mailing list