Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!cs.utexas.edu!usc!bloom-beacon!MAPS.CS.CMU.EDU!Sherman.Uitzetter From: Sherman.Uitzetter@MAPS.CS.CMU.EDU Newsgroups: comp.windows.x Subject: Window visible yet? Message-ID: <8908012244.AA08125@ATHENA.MIT.EDU> Date: 1 Aug 89 22:43:23 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 20 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.