<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Eric,<br>
    <br>
    Just added a working #new to LayoutMorph.<br>
    <br>
    Thnaks for reporting!<br>
    <br>
    Cheers,<br>
    <br>
    On 10/24/2021 9:20 PM, Eric Gade wrote:
    <blockquote
cite="mid:CA+CiqoXbM9RnsLtePSc0sWnpmxW5TXHWJsfCV5xcL5riNHXv3g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi Juan,</div>
        <div><br>
        </div>
        <div>Thanks for the information. I'm still a little confused
          about one part:<br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sun, Oct 24, 2021 at
            11:48 AM Juan Vuletich <<a moz-do-not-send="true"
              href="mailto:juan@jvuletich.org">juan@jvuletich.org</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;">
            <br>
            > You might be thinking, "just use a LayoutMorph as the
            root,<br>
            <br>
            Yes. That would be my suggestion.<br>
            <br>
            > " which leads me to my next question: are we supposed
            to subclass <br>
            > LayoutMorph and use it by ourselves to make widgets?<br>
            <br>
            No. there's no need to do that.The system uses instances of
            LayoutMorph <br>
            all over the place. You can cycle the halo on any
            SystemBrowser, or <br>
            explore the submorphs structure and see for yourself.<br>
          </blockquote>
          <div><br>
          </div>
          <div>I'm probably not understanding some part of your
            explanation.</div>
          <div><br>
          </div>
          <div>I'll explain what I'm thinking. In order to create, say,
            a custom Morph class that can also have layouts, I don't see
            a way around subclassing LayoutMorph. The problem I
            encounter there is that the normal Morph instantiation
            behavior of MyCustomMorph class >> #new no longer
            works. The examples on the class side of LayoutMorph are not
            useful in this case, since they are simply opening
            LayoutMorphs in the world. My assumption about how we expect
            to initialize custom Morphs in Cuis might be wrong -- maybe
            we shouldn't expect to be able to `SomeMorph new openInHand`
            on every Morph subclass?<br>
          </div>
          <div><br>
          </div>
          <div>You might be wondering why I would want to subclass.
            Having a complex Morph with an override of #drawOn: so that
            there are rounded, clipped corners is one example (attached
            is an image of the Morph I've been able to make).</div>
          <div><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>But, for example, SystemWindow does what you say. See <br>
              #layoutSubmorphs.<span class="gmail-im"><br>
              </span></div>
          </blockquote>
          <div><br>
          </div>
          <div>Ok I'll look into this next. <br>
          </div>
          <br>
        </div>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <div>Eric</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
  </body>
</html>