Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!hplabs!hpl-opus!hpccc!hp-sde!hpfcdc!hpfclp!diamant From: diamant@hpfclp.SDE.HP.COM (John Diamant) Newsgroups: comp.windows.x Subject: Re: Mixing Widgets with non-widgets code (again) Message-ID: <9740030@hpfclp.SDE.HP.COM> Date: 3 Jun 88 18:53:15 GMT References: <3755@pasteur.Berkeley.Edu> Organization: HP SDE, Fort Collins, CO Lines: 16 > I tried not forking and not calling XtMainLoop() and having my own > main loop use XNextEvent() and read events for both my window and > the widgets window (I don't know why, but it doesn't seem to work). > If I don't call XtMainLoop(), the dialog box (widget tree) never > gets displayed -- I also can't seem to get events from it. XtMainLoop() is a very simple function. It calls XtNextEvent and XtDispatchEvent in an infinite loop. You could make your own variant that dispatches your own events first, but calls XtDispatchEvent on the remaining Toolkit events. John Diamant Software Development Environments Hewlett-Packard Co. ARPA Internet: diamant@hpfclp.sde.hp.com Fort Collins, CO UUCP: {hplabs,hpfcla}!hpfclp!diamant