Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: Incremental Display of Widget Tree Message-ID: <9008081319.AA18708@lyre.MIT.EDU> Date: 8 Aug 90 13:19:28 GMT References: <1990Aug8.025339.3419@pcrat.uucp> Sender: daemon@athena.mit.edu (Mr Background) Organization: DEC/MIT Project Athena Lines: 22 - Now, process events until widgets are displayed **** How do I do this **** You process events with a loop consisting of while (XtAppPending(...)) { ... XtAppNextEvent(...); ... XtDispatchEvent(...); ... } (this is precisely XtAppMainLoop, substituting XtAppPending for True). You might find it desirable to call XFlush before the loop in some circumstances, or even XSync just before XtAppPending to insure that the client and server queues are completely emptied before continuing. But have you considered using "work procedures"? See XtAppAddWorkProc().