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

Conference bulova::decwindows

Title:DECWINDOWS
Notice:DECwindows Motif V1.2-4 SSB kits: note 5519
Moderator:GRIM::MESSENGER
Created:Wed Nov 28 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5861
Total number of notes:24081

5759.0. "How to add a callback for the window menu close when not toplevel?" by EDSCLU::BELANGER (DEBUGGING. The art of creating better bugs!) Fri Jan 24 1997 16:49

    
    How does one add a Callback for the Close window menu item in a window
    that does NOT have the VendorShell Class in its inheritance hierarchy? 
    I have a XmFormDialog widget (from a UIL file), that when I attempt to
    call XmAddProtocolCallback for the WM_DELETE_WINDOW atom, causes a
    "must be a vendor shell" warning to get written out to the display.  I
    want to handle the close myself.
    
    Thanx,
    
    Jon. Belanger
T.RTitleUserPersonal
Name
DateLines
5759.1GERUND::WOLFEI'm going to huff, and puff, and blow your house downTue Jan 28 1997 13:024
UIL is putting the XmForm in a dialog shell for you. Try using 
XtParent of the form for the call to XmAddProtocolCallback. 

			Pete
5759.2That is what it needed, thanx.EDSCLU::BELANGERDEBUGGING. The art of creating better bugs!Wed Jan 29 1997 08:464
    
    Thanx, that was it.
    
    ~Jon.