<div dir="ltr"><div class="gmail_default" style="font-size:small">Nicola,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You are doing quit well. </div><div class="gmail_default" style="font-size:small">Note: All of the behavior of #AlignmentMorph is still in the image most of it has been promoted to #Morph.</div><div class="gmail_default" style="font-size:small">Note2: I am still very much a newbie with #Morph, but trying to answer your questions makes me think about what I know.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Now to your questions:</div><div class="gmail_default" style="font-size:small"><div>1] How can I make the buttons fill all the third row length ? </div><div>        I think you have to change the bounds of the morphs to increase the width. I am not sure which methods to use. (You can resize any morph by using the #Halo</div><div>2] How do I embed newlines in textT1 string, I see '\n' is not working. </div><div>       I did a search of the image for methods which contain the string 'newline' and saw some code which inspired this  'aaaa', String crlf, 'bbbb'. Wrapped text is another option. Both of these require the height of the container morph to be increased. I have seen text boxes (#TestMorph ?) dynamically expand, but I don't know how it works.</div><div>3] How could i make the image in row4 fill its whole row (maybe same as [1])</div><div>       I think that this is the same as 1 too.</div><div>4] How can I show the Squeak logo into image "i1" ? Just to have something nicer to display into examples.</div><div>       Which Squeak logo do you want to use? The Squeak logo in the #DockingBar is an Icon. Check the Squeak wiki <a href="http://wiki.squeak.org/squeak/2170" target="_blank">http://wiki.squeak.org/squeak/2170</a> for Squeak Icons - Branding, or search for Squeak Smalltalk images. Once you have an image on your computer create an #ImageMorph using the method #setNewImageFrom:</div><div><br></div><div>Hopes this helps</div><div><br></div><div>-jrm</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2019 at 10:59 AM Nicola Mingotti <<a href="mailto:nmingotti@gmail.com" target="_blank">nmingotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>Hi, </div><div><br></div><div>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><br></div><div>1] How can I make the buttons fill all the third row length ? </div><div>2] How do I embed newlines in textT1 string, I see '\n' is not working.  </div><div>3] How could i make the image in row4 fill its whole row (maybe same as [1])</div><div>4] How can I show the Squeak logo into image "i1" ? Just to have something nicer to display into examples.</div><div><br></div><div>---------------------</div><div><div>m := RectangleMorph new.</div><div>m openInWindow.</div><div><br></div><div>"Initial size of the window".</div><div>(m owner) extent: 300@300. </div><div>(m owner) setLabel: 'Layout test-1'.</div><div><br></div><div>m layoutPolicy: TableLayout new.</div><div>m listDirection: #topToBottom.</div><div>m hResizing: #spaceFill.</div><div>m vResizing: #spaceFill.</div><div>m color: Color yellow.</div><div><br></div><div>row0 := AlignmentMorph newRow color: (Color white); </div><div>                hResizing: #spaceFill; vResizing: #spaceFill.</div><div><br></div><div>row1 := AlignmentMorph newRow color: (Color r:100 g:100 b: 100); </div><div>                hResizing: #spaceFill; vResizing: #spaceFill.</div><div><br></div><div>row2 := AlignmentMorph newRow color: (Color r:300 g:300 b: 300); height: 50;</div><div>                hResizing: #spaceFill; vResizing: #fixed.</div><div><br></div><div>row3 := AlignmentMorph newRow color: (Color r:500 g:500 b: 500); </div><div>                hResizing: #spaceFill; vResizing: #spaceFill.</div><div><br></div><div><br></div><div>m addMorphBack: row0.</div><div>m addMorphBack: row1.</div><div>m addMorphBack: row2.</div><div>m addMorphBack: row3.</div><div><br></div><div>t1 := TextMorph new.</div><div>t1 wrapFlag: true. </div><div>textT1 := '-] Autoresize buttons to fills space ? \n'.</div><div>textT1 := textT1, '-] line 2. '. </div><div>t1 contents: textT1. </div><div>row0 addMorph: t1. </div><div><br></div><div>10 timesRepeat: [row1 addMorph: (CircleMorph new extent: 10@10; color: Color blue)].</div><div><br></div><div>b1 := SimpleButtonMorph new. </div><div>b1 borderWidth: 3 ; label: 'Button1'. </div><div><br></div><div>b2 := SimpleButtonMorph new. </div><div>b2 borderWidth: 3 ; label: 'Button2'. </div><div><br></div><div>row2 addMorph: b1.</div><div>row2 addMorph: b2.</div><div><br></div><div>i1 := ImageMorph new. </div><div>row3 addMorph: i1.</div><div>---------------------</div></div><div><br></div><div>bye</div><div>Nicola</div><div><br></div><div><br></div><br><div><br><blockquote type="cite"><div>On Jul 25, 2019, at 5:11 PM, John-Reed Maffeo <<a href="mailto:jrmaffeo@gmail.com" target="_blank">jrmaffeo@gmail.com</a>> wrote:</div><br class="gmail-m_-5014089612377574708gmail-m_4643055615137175550Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-size:small">Hello Nicola,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Check out <a href="https://wiki.squeak.org/squeak/52" target="_blank">https://wiki.squeak.org/squeak/52</a> - How to lay out submorphs - example 1 </div><div class="gmail_default" style="font-size:small"><br></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></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></div><div class="gmail_default" style="font-size:small">-jrm</div></div><br><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" target="_blank">nmingotti@gmail.com</a>> wrote:<br></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>
<br>
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>
<br>
It is quite difficult to find information about this subject. <br>
<br>
I finally landed here:<br>
<a href="https://wiki.squeak.org/squeak/2400" rel="noreferrer" target="_blank">https://wiki.squeak.org/squeak/2400</a><br>
<br>
Bue when I try to open the file "MorphLayoutArticle.pr" in Squeak 5.2 I get a lot of errors.<br>
<br>
Is there around a working version of MorphLayoutArticle ? <br>
<br>
bye<br>
Nicola<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div>
_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></div></blockquote></div><br></div>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div>