Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!pbinfo!asterix!kern From: kern@asterix.cadlab.de (Thomas Kern) Newsgroups: comp.windows.x.motif Subject: Re: XmNdestroryCallback on a SelectionBoxDialog... Message-ID: <1991Jun3.080854.13064@uni-paderborn.de> Date: 3 Jun 91 08:08:54 GMT References: <1991May29.024641.21512@ux1.cso.uiuc.edu> Sender: news@uni-paderborn.de (News Uni-Paderborn) Organization: Cadlab Lines: 46 Nntp-Posting-Host: 131.234.80.150 In article , roger@zuken.co.jp (Roger Meunier) writes: |> In article lyons@srg (Don R. Lyons x4811) writes: |> |> > In article <1991May29.024641.21512@ux1.cso.uiuc.edu> CWIKLA@uimrl7.mrl.uiuc.edu (John/Consultant) writes: |> > |> > > 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... |> > |> > In Motif 1.0.* for X11R3 this behavior is, unfortunately, correct. |> > The bug with calling XtDestroyWidget has been fixed in Motif 1.1.* |> > for X11R4, so the release notes claim. I am still waiting for |> > source so can someone verify? |> |> I had posted some source several weeks ago which illustrated the problem |> (and to which no one cared to respond... GRRRR). We just received X11R4 |> and Motif 1.1 last week, and my test program no longer crashes, so I assume |> that the problem has been worked around. Hats off to them bug fixers! |> Actually, there is no need to destroy the DialogShell explicitly. All Motif XmCreate...Dialog() functions add a callback to the DialogShell's child to destroy its parent -- which is the DialogShell! Just call XtDestroyWidget() for the Widget-Id which is returned from your XmCreate...Dialog() function and everything should be ok -- at least for Motif 1.1. I don't no if this behaviour is documented, probably not ;-). |> Now, if they'd only find a way to make XtMakeGeometryRequest() work |> within a XmForm, then I'd *really* be happy!!! ;-) |> -- |> Roger Meunier @ Zuken, Inc. Yokohama, Japan (roger@zuken.co.jp) What do you mean? -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Thomas Kern | Tel. : (+49) (+) 5251-284 111 | | CADLAB | Fax : (+49) (+) 5251-284 140 | | Bahnhofstr. 32 | E-Mail: kern@cadlab.uucp | | D-4790 Paderborn | kern@cadlab.cadlab.de | | Germany | ...!uunet!unido!cadlab!kern | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~