Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sbi!zeus!bpa_su10!sivan From: sivan@bpa_su10.Sbi.Com (Sivan Mahadevan) Newsgroups: comp.windows.x Subject: Re: Synchronizing with Xt (XtPopup). Keywords: XtPopup Xt events Athena Message-ID: <122@bpa_su56.bpa_su10.Sbi.Com> Date: 25 Jan 91 15:48:01 GMT References: <1991Jan25.033150.12714@mel.dit.csiro.au> Organization: BPA - Salomon Brothers, NY Lines: 27 In article <1991Jan25.033150.12714@mel.dit.csiro.au>, kmy@mel.dit.csiro.au (Kid Mun Yap) writes: > 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 I have had this problem using the Motif toolkit, you can flush (or sync) and process all pendings events, and still you don't see the label on the popup. My solution was to flush and then wait for an expose event on the label widget. -- Sivan Mahadevan Salomon Brothers Inc Bond Portfolio Analysis Analytical Applications Group One New York Plaza 44th Floor 212-747-5418 New York NY 10004 sivan@bpa_su10.sbi.com uunet!sbi.com!bpa_su10!sivan