[Newbies] Designing proportional layout with the mouse

Alexandre Jasmin alex at R4p70r.net
Sat Feb 10 23:27:02 UTC 2007

I'm trying to design a Morphic layout using a minimum of code. I see
that you can set the layout policy of a morph from the Yellow button
menu. Unfortunately, I don't know how to add a sub morph using that

Currently I'm positioning one morph on top of another and evaluate this

parent layoutPolicy: ProportionalLayout new.

  addMorph: chld
    fullFrame: (
      LayoutFrame fractions: (
        (chld topLeft - parent topLeft / parent extent) corner:
         (chld bottomRight - parent topLeft / parent extent)

While that works I'd like to do this the eToy like way if possible.


More information about the Beginners mailing list