[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

2772.0. "How to know if a window is interrupted?" by R2ME2::CHAN () Wed May 16 1990 14:42

    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.RTitleUserPersonal
Name
DateLines
2772.1my last questionR2ME2::CHANWed May 16 1990 15:1713
    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.2Addevenhandler doesn't workR2ME2::CHANThu May 17 1990 15:3822
    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.3GUESS::DERAMODan D'EramoThu May 17 1990 19:568
	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