Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uunet!mcsun!ukc!stl!siesoft!huw From: huw@siesoft.co.uk (Huw Roberts) Newsgroups: comp.windows.x.motif Subject: Re: Warning Dialog Message-ID: <1991Jan4.143707.1758@siesoft.co.uk> Date: 4 Jan 91 14:37:07 GMT References: <25167.9012181515@orbweb.spider.co.uk> Sender: usenet@siesoft.co.uk (NNTP Poster) Distribution: inet Organization: Siemens-Nixdorf Systems Development Group, UK Lines: 20 > How can I ensure that a warning dialog widget disappears IMMEDIATELY after > clicking on (any of the buttons) OK or CANCEL OR HELP? > I tried putting XtDestroyWidget(w) as the 1st statement of the callback, > but It does not do the trick! > The dialog box seems to disappear only after the callback associated with any > of these buttons terminates!! I have the opposite problem - I am using an ErrorDialog to display an error to the user. The user has the option either to continue regardless or to cancel the operation, but he can also get help (another dialog) to allow him to make the decision. My problem is that when the user selects the help button, the error dialog is removed from the screen so he is unable to then choose one of the other options. I want to retain the ErrorDialog until the user chooses one of the other options. (I am using XmCreateErrorDialog followed by XtManageChild to display the widget and am not destroying or unmapping it subsequently) Thanks, Huw