Try adding a CreateTimer 50 in your setup.
I kind of think you should restructure your program so the canvas update is in a function that is called from Event case $4001 and use standard message handler main loop as in the UserGuide.
I kind of think you should restructure your program so the canvas update is in a function that is called from Event case $4001 and use standard message handler main loop as in the UserGuide.