<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 9/30/2021 1:06 PM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote cite="mid:04038d01-a72a-9464-c6e2-4bdb2bc878dd@drgeo.eu"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font size="+1">Thanks Juan for the fix on the Layout.</font></p>
      <p><font size="+1">I am resurrecting my circular toolbar
          experiment to use it with DrGeo[1] as the main toolbar. <br>
        </font></p>
      <p><font size="+1">I fixed a few things as the VectorGraphics API
          changed a bit since then. There is a package[2] to test it.<br>
        </font></p>
      <p><font size="+1">However I still have one issue: the morph is
          clipped to the inner disc, drawn from this morph draw method.
          The external chevron button, all around the disc are not
          clipped. Any idea why?<br>
        </font></p>
      <p><font size="+1"><br>
        </font></p>
      <img moz-do-not-send="false"
        src="cid:part1.06090706.01030105@jvuletich.org" alt=""
        height="336" width="311"><br>
      <p><font size="+1"><br>
        </font></p>
      <p><font size="+1">[1] <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
href="https://github.com/hilaire/cuis-xp/blob/master/CuisSubtoolbarsTigh.png">https://github.com/hilaire/cuis-xp/blob/master/CuisSubtoolbarsTigh.png</a></font></p>
      <p><font size="+1">[2] <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
href="https://github.com/hilaire/cuis-xp/blob/master/Morphic-Circular.pck.st">https://github.com/hilaire/cuis-xp/blob/master/Morphic-Circular.pck.st</a><br>
        </font></p>
      <p><br>
      </p>
      <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
    </blockquote>
    <br>
    Hi Hilaire,<br>
    <br>
    The problem is that ChevronMorph inherits from PluggableButtonMorph.
    But PluggableButtonMorph is a kind of Widget. From the Widget class
    comment: <br>
    <br>
    "Hierarchy for morphs that are rectangle like, and that occupy an
    area that can be specified as a Rectangle. This means that, besides
    being of rectangular shape, sides are aligned with local coordinate
    axes. Including rectangles with rounded corners and such. The idea
    is that the 'extent' ivar is all that's needed to establish our
    dimensions and shape."<br>
    <br>
    ChevronMorph is not at all like that. Adding back methods from Morph
    that were redefined in Widget (see attach) it starts to work better.
    But I think a better way is to subclass MovableMorph, and maybe copy
    any instance variables and methods from PluggableButtonMorph that
    might be needed.<br>
    <br>
    Maybe we'd rename Widget to make all this clearer. Or find some way
    to make it clear that it is a hierarchy of boring little squares,
    and nothing more.<br>
    <br>
    Hope this helps.<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>