[comp.windows.x] Window visible yet?

Sherman.Uitzetter@MAPS.CS.CMU.EDU (08/02/89)

    I am writing a program that often needs to do a lot of number crunching.
Prior to this number crunching I would like to popup a widget saying something
like "number-crunching...please wait." . I wrote the code but there's a small
problem - after calling XtPopup the number-crunching begins and the processing
of events is postponed until the number-crunching ends which means the "please
wait" widget never gets to display itself.
    How can I get and process events long enough before the number-crunching
starts to get the "please wait" message up and visible?

Basically, in the following code what should I put in for PleaseWaitVisible():

    while (!PleaseWaitVisible()) {
	XtNextEvent(&myEvent);
	XtDispatchEvent(&myEvent);
    }

Thanks in advance for responses,
-Sherman.