Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!MODAL375.ME.VT.EDU!hildjj From: hildjj@MODAL375.ME.VT.EDU (Joe Hildebrand) Newsgroups: comp.windows.x.motif Subject: Disabling Window Menu Options? Message-ID: <9103250343.AA01594@BU.EDU> Date: 25 Mar 91 03:44:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 19 > I want to disable or sensitize menu options in the Motif Window Menu for a > client. Specifically, I want to disable the Close option and force the user > to exit the client via its own Exit Option. Could someone tell me how to do > this. I just licked this problem last week. I had a kludge where I set a resource in the .Xdefaults to prevent the user from using the close option: Mwm*myprog*clientFunctions: -close But using a hint from the FAQ, I came up with the answer that nazgul@alfalfa.com provided. Unfortunately, that didn't quite work for me. Try this: Widget toplevel; Arg wargs[5]; int n; Atom wm_delete_window; toplevel = XtInitialize (argv[0], "myprog", NULL, 0, &argc, argv);