<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">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">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>