I’m using the OnIdle-event for some simple animations, and it works all right.
The trouble, though, is when the user starts to move or resize the window, the OnIdle-event stops firing until the move/resize-operation is completed.
I need to detect when this happens, so that I can pause all animations. But how do I detect movement of the window?
I’d go with mghie comment : use a timer for the animation, and activate/deactivate it with message handlers.
In your case, you may want to add the following message handlers :