<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Hi John,<br>
    <br>
    Thank you for your suggestion. <br>
    <br>
    In StackOverflow a guy suggested something else and also has given
    me some hints on how to look for solutions myself. See here: <a
href="https://stackoverflow.com/questions/57269261/how-to-rescale-submorph-when-the-container-does/57279752#57279752">https://stackoverflow.com/questions/57269261/how-to-rescale-submorph-when-the-container-does/57279752#57279752</a><br>
    <br>
    It will take me a while to solve this, there are still a lot of more
    fundamental things that i do not know and I need to get them sorted
    out.<br>
    <br>
    bye<br>
    Nicola<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 8/2/19 8:36 PM, John-Reed Maffeo
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEUV3XDgJTcm16Qay8C+bJXBX_3zaLwqzLx1EhRUMJNPQ_wpeQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <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">This
            command will rescale the polygonMorph. I am not sure how it
            is used in your example.</div>
          <div class="gmail_default" style="font-size:small"><br>
          </div>
          <div class="gmail_default" style="font-size:small">1. Run your
            sample code and create the rectangle.</div>
          <div class="gmail_default" style="font-size:small">2. Use the
            Halo to resize the parent and make sure to maintain the
            aspect ratio</div>
          <div class="gmail_default" style="font-size:small">3. Launch
            Explore from the Halo. </div>
          <div class="gmail_default" style="font-size:small">4. Find the
            polygon submorph and select it.</div>
          <div class="gmail_default" style="font-size:small">5. In the
            code space at the bottom of the Explorer do "self bounds:
            self owner bounds"</div>
          <div class="gmail_default" style="font-size:small"><br>
          </div>
          <div class="gmail_default" style="font-size:small">Probably
            not much help, but perhaps a hint to something that will.</div>
          <div class="gmail_default" style="font-size:small"><br>
          </div>
          <div class="gmail_default" style="font-size:small">-jrm</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2019 at 12:43
          AM Nicola Mingotti <<a href="mailto:nmingotti@gmail.com"
            target="_blank" moz-do-not-send="true">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>
          Considering this short snippet:<br>
          -------------------<br>
          "Prepare the rectangle containing the drawing."<br>
          r := RectangleMorph new.<br>
          r extent: 500@500.<br>
          r openInWindow. <br>
          <br>
          p := PolygonMorph <br>
                   vertices: {(r left)@(r top). (r right)@(r bottom)}<br>
                   color: Color white borderWidth: 2 borderColor: Color
          white.<br>
          <br>
          r addMorph: p.<br>
          --------------------<br>
          <br>
          1] I see that the PolygonMorph 'p' translates with its father
          the RectangleMorph 'r'. Ok, as expected.<br>
          <br>
          2] If I rescale 'r' with the Halo yellow button, 'p' is not
          rescaled and the effect is unexpected. <br>
          <br>
          How can I make 'p' rescale with its father ? <br>
          <br>
          bye<br>
          Nicola<br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          _______________________________________________<br>
          Beginners mailing list<br>
          <a href="mailto:Beginners@lists.squeakfoundation.org"
            target="_blank" moz-do-not-send="true">Beginners@lists.squeakfoundation.org</a><br>
          <a
            href="http://lists.squeakfoundation.org/mailman/listinfo/beginners"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>