Is it possible to remove the close button from a BulletinBoard widget in Motif? Or, alternatively, attach a callback function to it? I know I can do this for the toplevel widget but can't seem to do it for a BulletinBoard.
For the toplevel shell I can do this to attach a callback function to the close button:
XmAddWMProtocolCallback(toplevel, XmInternAtom(display,"WM_DELETE_WINDOW",True),
(XtCallbackProc)buttonCB, (XtPointer)data);
Or I can remove it entirely with this:
XtVaSetValues(toplevel, XmNmwmFunctions, MWM_FUNC_ALL | MWM_FUNC_CLOSE, NULL);
But neither of these work for a BulletinBoard widget. The latter has no effect. The former gives an error, "Warning: Widget must be a VendorShell."
I found a way to do this already. Instead of using XtVaSetValues, I found I can use XtSetArg(myBB, ...) at the time the BB widget is created. In other words,