Path: utzoo!utgpu!news-server.csri.toronto.edu!orasis.vis.toronto.edu!tjhorton Newsgroups: comp.windows.x.motif From: tjhorton@vis.toronto.edu ("Timothy J. Horton") Subject: Re: Working popup between 2 processes Message-ID: <91Jan17.235853est.8497@orasis.vis.toronto.edu> Organization: Department of Computer Science, University of Toronto References: <1991Jan16.035551.20623@wlbr.imsd.contel.com> Distribution: usa Date: 18 Jan 91 04:59:09 GMT Lines: 22 amc@wlv.imsd.contel.com (Allen M. Cohen) writes: >I have 2 client processes. Process_1 spawns Process_2. >How can I have Process_1 popup an XmCreateWorkingDialog (with no buttons >managed), and then have Process_2 popdown or destroy that Dialog? >I tried passing the XmCreateWorkingDialog's Widget ID as an argument to >Process_2, and then having Process_2 doing XtDestroyWidget on it, but >that didn't work. Widgets are parts of programs. Windows, on the other hand, are not. If you spawn a different program, it has a new set of widgets (a copy). The windows, on the other hand, are a different thing; both processes have the *same* socket connection and thus (conflicting) control over the same set of windows, until the socket is closed somehow (you don't want to play with this). What I would do is have process2 send process1 a signal, for which the signal handler in process1 would unmanage/popdown the dialog. If you are not using unix, you can still use property events, or ICCM (inter-client communication). Time to read up, if this is the case. [could not get personal mail through to originator] tjhorton@vis.toronto.edu