Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!pyrltd!root44!praxis!cged!cathy From: cathy@cged.co.uk (Cathy Evans) Newsgroups: comp.windows.x.motif Subject: Re: Modal Dialog widget: assistance requested Message-ID: <1991Jan30.181916.1624@cged.co.uk> Date: 30 Jan 91 18:19:16 GMT References: <90012@lll-winken.LLNL.GOV> Organization: Computer General Electronic Design, Bath, U.K. Lines: 20 woodruff@addvax.llnl.gov (Woodruff, John P) writes: >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); I don't know which version of Motif you're using, but in version 1.1, there is a value XmDIALOG_FULL_APPLICATION_MODAL. I've just tried this and it seems to do the trick - ie halts the application until the message box is responded to. Cathy Evans Computer General ED, The New Church, Henry St, BATH BA1 1JR, UK Tel: +44 225 482744 Fax: +44 225 442751 cathy@cged.co.uk