Repaint before entering modal state

After searching other topics I'm not sure this one was fully addressed so hopefully it will be helpful.

I am calling repaint on a component, and then I am entering a modal loop on another component.  Frustratingly, the repaint message gets delayed until after the modal loop has been exited.  What is the proper way to force the first component to get repainted before the modal loop on the second component is entered?

Huh? No, you've misunderstood something there. Running a modal loop will never affect or delay repainting. If repainting stops, then you're not running a modal loop, you're just blocking the message thread, which is something you must never do.

Thanks, yeah, I actually figured that out soon after my post.  Seems like there's no way to delete posts on here though.