<div dir="ltr"><div>Hi All,</div><div><br></div><div>I'm experimenting with creating some new widgets using VectorGraphics and friends. Coming from the Squeak/Pharo side of things, the Morphic layout structure is completely different in Cuis. I have a couple of questions.</div><div>  <br></div><div>First, how do we handle the situation where we have a WidgetMorph whose sole submorph is a LayoutMorph? Is it possible to simply make it match dimensions? You might be thinking, "just use a LayoutMorph as the root," which leads me to my next question: are we supposed to subclass LayoutMorph and use it by ourselves to make widgets? The reason I ask is because sending LayoutMorph >> #new always results in an MNU about direction not being specified. This is true even in cases where you subclass LayoutMorph and explicitly set a direction (column or row) in the initialize method. I am not sure what is "correct" here.</div><div>  <br></div><div>One final question about LayoutSpecs. It seems that any settings you make to a submorph's layoutSpec (for example, getting rid of proportionality) will be reset when you add it to a parent LayoutMorph. So for now, I am only adjusting the layouSpecs of my submorphs after they have been added to their parent. Is this correct, or is there some better way to do it?</div><div><br></div><div>Thanks!<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Eric</div></div></div></div></div>