How do I know when the TAdvProgress progress bar reaches 100%?

I have a routine that updates the database, and when the update reaches 100%, I pass the TAdvProgress to pbsMarquee and execute the next process.

In some situations, even though I set AdvProgress1.Position=100;, due to the progress effect of this component, the Marquee effect starts when the bar is at 70%.

How can I wait for the progress bar to reach 100% (on the screen) before starting the next routine in my application?

This component builds on the standard VCL TProgressBar that builds on the Windows OS progressbar class. And it is the underlying Windows class that performs the animation. Sadly, from this underlying Windows class, there is no notification when the animation ends.