|
Designing proportional layout with the mouse: msg#00050lang.smalltalk.squeak.beginners
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 policy. Currently I'm positioning one morph on top of another and evaluate this code: parent layoutPolicy: ProportionalLayout new. parent 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. Alex
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Loading SSL, Ron Teitelbaum |
|---|---|
| Next by Date: | Re: Re: Re: A do with ONLY index? (plus, . a style question), Michael van der Gulik |
| Previous by Thread: | Ralph Johnson video lectures on Smalltalk, Michael Davies |
| Next by Thread: | Re: Designing proportional layout with the mouse, Alexandre Jasmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |