<!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">Depending on the complexity of the interaction in
        your application, I would suggest implementing the design
        pattern State[1]. It will scale well when the complexity of your
        application grows. It serves me well in DrGeo and DyboApp.</font></p>
    <p><font size="4">[1] <a class="moz-txt-link-freetext" href="https://drcuis.github.io/DesignGUI/State.html">https://drcuis.github.io/DesignGUI/State.html</a></font></p>
    <div class="moz-cite-prefix">Le 05/07/2026 à 12:38, Luciano
      Notarfrancesco a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAL5GDypSzNeziuZfmjXRyPsG4GBd3oyrr-_VLPjp-w85XEsjuA@mail.gmail.com">
      <div dir="auto"
style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">For
        dragging I implement allowsSubmorphDragging in the owner, and
        the morph that I want to move with dragging implements
        aboutToBeGrabbedBy: returning an invisible morph that is
        actually dragged with the hand and sends morphPosition: to the
        target morph each time it changes position. In this way the
        morph that I’m moving with the drag gesture doesnt change owner,
        just moves within the owner (typically a ScrollerMorph or a
        ZoomerMorph in my project). It’s kind of a trick, but seems to
        work fine so far.</div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo">http://mamot.fr/@drgeo</a></pre>
  </body>
</html>