Hi.
Is it possible to wait for an animation to end?
I have a component which upon setting its visibility to ‘true’, sets its alpha to 0 and animates it to 1 (fadein).
When I use runModalLoop to show this component, after changing its visibility, the animation will start, but will never finish (callback isn’t being called) because of the modal loop in juce_ModalComponentManager:
while (! finished)
{
if (! MessageManager::getInstance()->runDispatchLoopUntil (20))
break;
}
If I could wait for the animation to finish before entering the loop, this would have been prevented.
Thanks.