[Q] SystemWindow addMorph: frame:

Bob Arning arning at charm.net
Fri Dec 3 13:20:54 UTC 1999


On Fri, 3 Dec 1999 02:42:55 -0500 (EST) Blacktooth <bt at whitestar.soark.net> wrote:
>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.

Cheers,
Bob





More information about the Squeak-dev mailing list