<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hi, </div><div class=""><br class=""></div><div class="">I could put together this example [code below], but I am stuck again on little things that are not so easy to find googling the docs.</div><div class=""><br class=""></div><div class="">1] How can I make the buttons fill all the third row length ? </div><div class="">2] How do I embed newlines in textT1 string, I see '\n' is not working.  </div><div class="">3] How could i make the image in row4 fill its whole row (maybe same as [1])</div><div class="">4] How can I show the Squeak logo into image "i1" ? Just to have something nicer to display into examples.</div><div class=""><br class=""></div><div class="">---------------------</div><div class=""><div class="">m := RectangleMorph new.</div><div class="">m openInWindow.</div><div class=""><br class=""></div><div class="">"Initial size of the window".</div><div class="">(m owner) extent: 300@300. </div><div class="">(m owner) setLabel: 'Layout test-1'.</div><div class=""><br class=""></div><div class="">m layoutPolicy: TableLayout new.</div><div class="">m listDirection: #topToBottom.</div><div class="">m hResizing: #spaceFill.</div><div class="">m vResizing: #spaceFill.</div><div class="">m color: Color yellow.</div><div class=""><br class=""></div><div class="">row0 := AlignmentMorph newRow color: (Color white); </div><div class="">                hResizing: #spaceFill; vResizing: #spaceFill.</div><div class=""><br class=""></div><div class="">row1 := AlignmentMorph newRow color: (Color r:100 g:100 b: 100); </div><div class="">                hResizing: #spaceFill; vResizing: #spaceFill.</div><div class=""><br class=""></div><div class="">row2 := AlignmentMorph newRow color: (Color r:300 g:300 b: 300); height: 50;</div><div class="">                hResizing: #spaceFill; vResizing: #fixed.</div><div class=""><br class=""></div><div class="">row3 := AlignmentMorph newRow color: (Color r:500 g:500 b: 500); </div><div class="">                hResizing: #spaceFill; vResizing: #spaceFill.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">m addMorphBack: row0.</div><div class="">m addMorphBack: row1.</div><div class="">m addMorphBack: row2.</div><div class="">m addMorphBack: row3.</div><div class=""><br class=""></div><div class="">t1 := TextMorph new.</div><div class="">t1 wrapFlag: true. </div><div class="">textT1 := '-] Autoresize buttons to fills space ? \n'.</div><div class="">textT1 := textT1, '-] line 2. '. </div><div class="">t1 contents: textT1. </div><div class="">row0 addMorph: t1. </div><div class=""><br class=""></div><div class="">10 timesRepeat: [row1 addMorph: (CircleMorph new extent: 10@10; color: Color blue)].</div><div class=""><br class=""></div><div class="">b1 := SimpleButtonMorph new. </div><div class="">b1 borderWidth: 3 ; label: 'Button1'. </div><div class=""><br class=""></div><div class="">b2 := SimpleButtonMorph new. </div><div class="">b2 borderWidth: 3 ; label: 'Button2'. </div><div class=""><br class=""></div><div class="">row2 addMorph: b1.</div><div class="">row2 addMorph: b2.</div><div class=""><br class=""></div><div class="">i1 := ImageMorph new. </div><div class="">row3 addMorph: i1.</div><div class="">---------------------</div></div><div class=""><br class=""></div><div class="">bye</div><div class="">Nicola</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 25, 2019, at 5:11 PM, John-Reed Maffeo <<a href="mailto:jrmaffeo@gmail.com" class="">jrmaffeo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Hello Nicola,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Check out <a href="https://wiki.squeak.org/squeak/52" class="">https://wiki.squeak.org/squeak/52</a> - How to lay out submorphs - example 1 </div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">There are several other layout links similar to this one.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">Note: AlignmentMorph has been deprecated, but it is still present in methods in current Squeak images.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">-jrm</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2019 at 1:14 AM Nicola Mingotti <<a href="mailto:nmingotti@gmail.com" class="">nmingotti@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br class="">
<br class="">
I am trying to understand the layout in Morph. I am familiar with other GUI toolkit as Tk, so It should not be a problem, I need just to see some simple examples. <br class="">
<br class="">
It is quite difficult to find information about this subject. <br class="">
<br class="">
I finally landed here:<br class="">
<a href="https://wiki.squeak.org/squeak/2400" rel="noreferrer" target="_blank" class="">https://wiki.squeak.org/squeak/2400</a><br class="">
<br class="">
Bue when I try to open the file "MorphLayoutArticle.pr" in Squeak 5.2 I get a lot of errors.<br class="">
<br class="">
Is there around a working version of MorphLayoutArticle ? <br class="">
<br class="">
bye<br class="">
Nicola<br class="">
<br class="">
_______________________________________________<br class="">
Beginners mailing list<br class="">
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank" class="">Beginners@lists.squeakfoundation.org</a><br class="">
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank" class="">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Beginners mailing list<br class=""><a href="mailto:Beginners@lists.squeakfoundation.org" class="">Beginners@lists.squeakfoundation.org</a><br class="">http://lists.squeakfoundation.org/mailman/listinfo/beginners<br class=""></div></blockquote></div><br class=""></body></html>