I've made a graphic simulation with a timer. But now I want to stop the simulation (but not disappear) only freeze the simulation.
I've already tried to use a do-while-loop but then the application crashes.
I've also tried to use a if-loop and in the loop set the length (that the application have to drawn) to zero but it doesn't freeze.
I've also tried to use in a if-loop, to call another function which doesn't do anything but this doesn't freeze the application.
Also I did this in a do-while-loop but then it crashes.
Does someone knows an answer and perhaps knows an example that I can understand what you're trying to say.