Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!tektronix!orca!tekecs!bobtl From: bobtl@tekecs.TEK.COM (Bob Toole) Newsgroups: comp.windows.x Subject: Re: X Toolkit and continuous graphic output Message-ID: <10191@tekecs.TEK.COM> Date: 25 Jul 88 15:58:46 GMT References: <8807240059.AA13157@violet.berkeley.edu> Reply-To: bobtl@tekecs.TEK.COM (Bob Toole) Organization: Tektronix, Inc., Wilsonville, OR Lines: 14 In article <8807240059.AA13157@violet.berkeley.edu> rusty@VIOLET.BERKELEY.EDU writes: >Suppose I have a program that continuously computes and generates >graphic output; how can I wrap the toolkit around this program? It >seems to me that once I call XtMainLoop() I've given up control and >there's no way for me to get to the main routine of my program that >generates the output. There is nothing sacred about XtMainLoop. It simply gets an event and dispatches it. So just build your own main loop which checks to see if any input is present before attempting to do the get/dispatch sequence, and generates your graphics output. You probably could do other things like build a widget which requests periodic timeouts, but this seems simpler.