Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
Hi, I have two windows running in different processes and each of them has to keep track of the existence of the other (since they are communicating between each other via either client message or property change event). My question is : How can one know that the other is dead? Keeping track of the DestroyNotifyEvent does serve the purpose but how about one is not died gracefully (i.e. NO XDestroyWindow() nor XtDestroyWidget() was called but ended by say pressing the Ctrl-Y)? Thanks in advance for any help. Regards, Aston
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2772.1 | my last question | R2ME2::CHAN | Wed May 16 1990 15:17 | 13 | |
Re: .-1 I got the answer for my own question. Do a XSelectInput() with StructureNotifyMask for the window to be destroyed. The way I did it wrong was to select it for the root window instead of the one to be destroyed. Thanks for the help of Burns and Vick. Regards, Aston | |||||
2772.2 | Addevenhandler doesn't work | R2ME2::CHAN | Thu May 17 1990 15:38 | 22 | |
Hi, Re my previous question. The Destroy event can be detected by a window which uses the XNextEvent() and then check each event to see if it is Destroy. What should I do if a widget which has to be notified if another window is destroyed? In this case I have no control of every event. The only way I can tell the happening of an event is by using the AddEventHandler() but I am now looking for the Destroy event of another window, that is the event for other guy instead of the widget itself. My application is concerning the communication of two window, in fact between a widget and a simple window, therefore each of them has to know the existence of the other. Thanks for any help. Regards, Aston | |||||
2772.3 | GUESS::DERAMO | Dan D'Eramo | Thu May 17 1990 19:56 | 8 | |
re .2 Get the VFake widget from Steve DECWIN:: Klein (see note 2564). I believe it will give you a way to make a nontoolkit window appear to be a toolkit window, at least enough to fool XtAddEventHandler(). Dan |