Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!mel.dit.csiro.au!kmy From: kmy@mel.dit.csiro.au (Kid Mun Yap) Newsgroups: comp.windows.x Subject: Synchronizing with Xt (XtPopup). Keywords: XtPopup Xt events Athena Message-ID: <1991Jan25.033150.12714@mel.dit.csiro.au> Date: 25 Jan 91 03:31:50 GMT Sender: usenet@mel.dit.csiro.au (usenet mail contact) Reply-To: kmy@mel.dit.csiro.au (Kid Mun Yap) Organization: CSIRO DIT (Melb.) Lines: 24 Hi everybody, Does anyone know why flushing events using : while (XtAppPending(app_context)) XtAppProcessEvent(app_context, XtIMAll); immediately after an XtPopup(widget, ...) does not flush all the events associated with the widget and its descendants but does so if a delay is introduced in between. The popup widget has a label widget as a child, doing the above without the delay in between causes the popup window to appear without the contents of of the label widget. Only on returning to XtAppMainLoop does the contents appear. This seem to suggest that the expose event which is to cause the contents of the label widget to be drawn is not being sent immediately the window is mapped. Is this right? If so, is there a way to force an expose event into the queue. The above mentioned widgets are all from the Athena widget set. Thanks in advance for any help, K M Yap