how to popup menu without suspend the background drawing?

I’m programming with phab in QNX4.25.
There’s a PtRaw widget in my application. When I press the right mouse
button on the widget, there will be a popup menu displayed. But the
background drawing will suspend for a while when the menu popup. I hope that
the drawing will not stop.
Thank you for your help!