<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="+1">Hi, <br>
</font></p>
<p><font size="+1">I need some morph operations to terminate
(animations, I will make a package of this Thibault Raffaillac
animation framework I just ported to Cuis) before resuming the
normal execution. <br>
</font></p>
<p><font size="+1">In code bellow, it is waiting for some animation
to terminate before doing other Morph operation.</font></p>
<p><font size="+1">I try with a Delay but it stalls the whole UI, so
the animation does not occur. <br>
</font></p>
<pre><font size="+1">openInWorld
| imageMorph center |
imageMorph _ SketchMorph new image: (self imageForm: 32).
center _ self activeHand morphPosition.
self center: center.
imageMorph
morphExtent: 0@0;
center: center;
openInWorld.
imageMorph
morphExtent: (self morphExtent during: 0.5 seconds);
center: (center during: 0.5 seconds).
(Delay forSeconds: 0.5) wait.
imageMorph dismissMorph.
super openInWorld
</font></pre>
<p><br>
<font size="+1"><font size="+1">I tried something like bellow, but
the super in the block only goes to self of the Morph, so it
results in an infinite animation<br>
</font></font></p>
<pre><font size="+1"> [(Delay forSeconds: 0.5) wait.
imageMorph dismissMorph.
super openInWorld] forkAt: Process userPriority
</font></pre>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<p><font size="+1"></font><br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a></pre>
</body>
</html>