AlignmentMorph obsolete so what do I use?

Ned Konz ned at bike-nomad.com
Tue Jul 9 14:16:06 UTC 2002


On Monday 08 July 2002 08:42 am, Jerome Chan wrote:
> On Monday, July 8, 2002, at 11:16 PM, Ned Konz wrote:
> > It doesn't have to. The framing rectangles have two parts:
> > * a part that is proportional to the window size
> > * a part that is a constant offset from that
> >
> > So for instance, this code in ArchiveViewer>>createWindow makes a
> > button bar that is always 44 pixels high, but whose width varies
> > with the window width:
> >
> > 	buttonBar _ self createButtonBar.
> > 	self addMorph: buttonBar
> > 		fullFrame: (LayoutFrame fractions: (0 at 0 corner: 1.0 at 0.0)
> > offsets: (0 at 0 corner: 0 at 44)).
> >
> > 	self minimumExtent: (buttonBar fullBounds width + 20) @ 230.
> >
> > You could also have the width fixed if you wanted.
>
> Is it possible to get rid of the frame outline?

Have you tried

addMorph: myMorph fullFrame: (...).
myMorph borderWidth: 0.

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




More information about the Squeak-dev mailing list