<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="4">Use the source, Mark!</font></p>
    <p><font size="4">You will discover that addMorph: and
        addMorphFront: are identical in the context of LayoutMorph.
        Indeed, there can't be a notion of Z-ordering in a LayoutMorph.<br>
      </font></p>
    <p><font size="4"><br>
      </font></p>
    <p><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
      <pre style="margin: 0; line-height: 125%"><span
      style="color: #BB0066; font-weight: bold">LayoutMorph</span><span
      style="color: #0066BB; font-weight: bold">>>addMorph:</span> <span
      style="color: #996633">aMorph</span>
        <span style="color: #888888">"Add a submorph, at the bottom or right, with a default LayoutSpec if none was provided."</span>

        <span style="color: #996633">aMorph</span> <span
      style="color: #0066BB; font-weight: bold">isPlacedMorph</span> <span
      style="color: #007020">ifFalse:</span> [ <span
      style="color: #007020">self</span> <span
      style="color: #0066BB; font-weight: bold">error:</span> <span
      style="background-color: #fff0f0">'Only PlacedMorphs can be used in Layouts'</span> ].
        <span style="color: #996633">aMorph</span> <span
      style="color: #0066BB; font-weight: bold">layoutSpec</span>.
        <span style="color: #007020">super</span> <span
      style="color: #0066BB; font-weight: bold">addMorphFront:</span> <span
      style="color: #996633">aMorph</span>
</pre>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">By the way Juan, addMorph: and
      addMorphFront are perfect twins. Any reason to not let addMorph:
      send the message addMorphFront: to self?<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Le 10/08/2024 à 13:40, Mark Volkmann
      via Cuis-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFfRWnXU74yYhk9cobkaWoOKDRNa+_VPR5SKTMSOV-3=B6ATaw@mail.gmail.com">
      <div>I see now that sending <font face="monospace">#addMorphFront:</font>
        does add a morph to the beginning of the <font face="monospace">submorphs</font>
        array, but the parent morph does not automatically redraw
        itself. Sending <font face="monospace">#redrawNeeded</font> to
        the parent does not force it to redraw using the updated
        submorphs array. What can I do to force that?</div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
  </body>
</html>