PennController for IBEX › Forums › Support › Removing Canvas after completion of Dashed Sentence › Reply To: Removing Canvas after completion of Dashed Sentence
July 9, 2020 at 3:44 pm
#5783
Jeremy
Keymaster
Hi Zach,
You are waiting for the Canvas element to complete, which won’t happen because Canvas elements define no events. You want to wait for the Controller element to complete instead:
newCanvas("sprcanv", 700, 700) .center() .add( 0, 0, getImage("sb1")) .print() , newController("DashedSentence", {s: row.SentenceText, display: "in place", blankText: "+"}) .print( 20, 40 , getCanvas("sprcanv") ) .log() .wait() .remove() , getCanvas("sprcanv").remove()
Jeremy