excited newbie:)

Karl Ramberg karl.ramberg at chello.se
Thu Mar 29 06:22:32 UTC 2001


Raymond Tiefenthal wrote:
> 
> > Btw, I just tried to assign a LayoutFrame to a simple morph from class
> > Morph. The problem is, it just sits there and won't change it's bounds.
> >
> > m_Morph new openInWorld.
> > m layoutFrame: (LayoutFrame fractions: (0 at 0 corner: 1.0 at 0.2) offsets:nil)
> >
> > I tried with embedding it in other morphs, sending it #changed, sending
> it's
> > owner #changed, but nothing happened. Could you drop a line on the
> solution?
> 
> I found the solution myself. The owner must have proportional layout and the
> submorph space fill layout.
> 
> m1_Morph new openInWorld.
> m2_Morph new openInWorld.
> m2 color: Color green.
> m1 changeProportionalLayout.
> m1 addMorph: m2 fullFrame: (LayoutFrame fractions: (0 at 0 extent: 0.5 at 1)
> offsets:nil)
> 
> Sorry, I should have tried harder in the first place. OTOH I have spent like
> 3 hours to figure it out :)

Thanks for sharing, I have not figured out all of the layout stuff 
myself yet, and small hints can save lot's of hours :-)
Karl





More information about the Squeak-dev mailing list