<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Alexandre,</font></p>
<p><font size="4">Most of the time, you don't need to subclass
LayoutMorph, unless you want to define new sort of complex
widget.</font></p>
<p><font size="4">You will create a LayoutMoprh instance you can
then add to a panel or a window.</font></p>
<p><font size="4">Try this:<br>
</font></p>
<p><font size="4"> LayoutMorph newColumn ::<br>
addMorph: (BoxedMorph new color: Color red; yourself);<br>
addMorph: (BoxedMorph new color: Color green; yourself);<br>
addMorph: (BoxedMorph new color: Color blue; yourself);<br>
openInWorld<br>
<br>
</font></p>
<p>HTH<br>
</p>
<p>Hilaire<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 13/03/2023 à 17:36, Alexandre
Rousseau via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAKmOayJa65DoBUNKZLHONCNW4q1NsRWABurSym4UOC3KiuDSbg@mail.gmail.com">Defining
a class as subclass of LayoutMorph and initializing it thus:
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font
face="monospace">initialize<br>
</font><font face="monospace"> super initialize.<br>
</font><font face="monospace"> self beColumn.</font></blockquote>
<div><br>
</div>
<div>morphs added to it still appear next to each other,
horizontally, as if #beColumn was ignored.</div>
<div><br>
</div>
<div>Is this expected behaviour for a subclass of LayoutMorph?</div>
<div><br>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>