Yakisoba
09-25-2006, 04:14 AM
I've created a small GUI application that animates the solution to the Towers of Hanoi problem.
The user can enter the number of disks and time delay.
Everything works with one major issue.
After the "start" button is clicked and the animation begins the UI is vulnerable to damage. i.e. If I drag another window over top or minimize the window the UI dissappears or gets "erased"...
the animation of the disks still draws inside the panel I use as a display, but every other part of the screen can be erased.
after the animation is complete, everything redraws correctly again.
how do I have the UI repaint properly during the animation process?
Thanks,
Yak
- there is quite a bit of code, so if anybody thinks they can help or wants to take a look at it, I can attach it to my next post.
The user can enter the number of disks and time delay.
Everything works with one major issue.
After the "start" button is clicked and the animation begins the UI is vulnerable to damage. i.e. If I drag another window over top or minimize the window the UI dissappears or gets "erased"...
the animation of the disks still draws inside the panel I use as a display, but every other part of the screen can be erased.
after the animation is complete, everything redraws correctly again.
how do I have the UI repaint properly during the animation process?
Thanks,
Yak
- there is quite a bit of code, so if anybody thinks they can help or wants to take a look at it, I can attach it to my next post.