larry@sunrise.com (Larry Rogers) (08/17/90)
> Can anyone show me exactly how one goes about creating a message box > under Motif that will not allow an application to continue until the I've been seeing this question on the net and have seen some pretty complex answers and am wondering why you don't just set the XmNdialogStyle of the Bulletin Board containing your widgets. Assuming that the parent is a Dialog Shell and the your widgets are parented by a Bulletin Board, the following does work: XtSetArg(args[n], XmNdialogStyle, XmDIALOG_SYSTEM_MODAL); Other options are available such as application modal, where the application is disabled but not the window outside the application. Application is vague, however, because each application shell is its own application as far as the Window Manager is concerned, so if you have more than one making an application modal dialog will not lock out the whole program. Anyway, hope this helped. Larry I have seen this comment regarding Unix not preventing stupid things because then it could not allow clever things. Stupid and clever are relative terms, Wouldn't it be clever to prevent stupid things? -- == Larry Rogers == Sunrise Software Systems, Inc. == <larry@sunrise.com | uunet!ezx!larry>