Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!usenet From: CWIKLA@uimrl7.mrl.uiuc.edu (John/Consultant) Newsgroups: comp.windows.x.motif Subject: XmNdestroryCallback on a SelectionBoxDialog... Message-ID: <1991May29.024641.21512@ux1.cso.uiuc.edu> Date: 29 May 91 03:38:36 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Distribution: local,world,all Organization: University of Illinois, Materials Research Laboratory CFC Lines: 28 X-News-Reader: VMS NEWS 1.03 I do the following: I use the convenience function XmCreateSelectionDialog. I set autounmanage to false. I then add a callback for the cancel button. I then add a callback for XmNdestroyCallback. I am trying to use XtDestroyWidget inside the cancel button callback (I actually try to destroy the DialogShell parent of the callback widget...) However this does not work -- program crashes... Is this the correct way to do this...I basically want to trash the entire dialogshell and selectionbox child. Thanks in advance, John ****************************************************************************** * John L. Cwikla * cwikla@uiucmrl, cwikla@uimrl7.mrl.uiuc.edu * * Chief Consultant, MRLCFC * uimrl::cwikla (217)333-8281 * * University of Illinois * Redefining Lunacy... * ******************************************************************************