Ok, call me dense, but even after going through the Forum (as well as guides and tutorials) and reading every reference I could find about "pausing" code I just can't seem to grasp the concept of moving from the old procedural way of "pausing" a process to an event-based way of doing it. Don't get me wrong, I'm well aware of the differences between procedural and event-based programming. However, this seemingly simple problem/task has me struggling for some reason.
Here's the basic thing I need to do in my app and on multiple occasions:
- Trigger an event.
- Run some code.
- Update the UI with a graphic and text.
- Pause for 2 seconds.
- Update the UI with another graphic and text.
- Pause for 2 seconds.
- Update the UI with the final graphic and text.
- Pause for 2 seconds.
- Run some more code.
- Complete the event.
What am I missing? I've played around with timers, ticks, Xojo.Core.Timer.CallLater, etc., but I just can't seem to achieve the desired result.
Any help would be appreciated. (Michel B, are you listening?) Thanks in advance. :-)