Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!samsung!sdd.hp.com!spool2.mu.edu!uunet!lll-winken!addvax.llnl.gov From: woodruff@addvax.llnl.gov (Woodruff, John P) Newsgroups: comp.windows.x.motif Subject: Modal Dialog widget: assistance requested Message-ID: <90012@lll-winken.LLNL.GOV> Date: 23 Jan 91 17:10:07 GMT Sender: usenet@lll-winken.LLNL.GOV Reply-To: woodruff@addvax.llnl.gov Organization: Lawrence Livermore National Lab Lines: 27 Nntp-Posting-Host: addvax.llnl.gov OSF Prog Guide 5.1 states "a single-reply Dialog widget is modal in nature. This means that a reply is required before the application can continue." My goal: in a program where there are multiple application shells created by XtAppCreateShell, I want to pop up a dialog in one of these which demands user response (locking out other buttons until the modal dialog is satisfied) without affecting the other App Shells. So I try to create such a widget: XtSetArg (args[n], XmNdialogStyle, XmDIALOG_APPLICATION_MODAL); n++; modal = XmCreateMessageDialog (parent, "ShouldBeModal", args, n); Let there be some button whose callback is void modalup (w, d, call_data) { XtManageChild(d); } Now when that button is pressed,the message dialog pops up nice as can be, BUT it is NOT modal: every other button in its App Shell (and the other App Shells as well) continue to perform just as when the "modal" dialog is absent. Please help me understand how to make "ShouldBeModal" behave. I am unsure how to find whether the proper widget got the intended resource value binding. I'll be grateful for help. John Woodruff Lawrence Livermore National Lab