Path: utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!uc!uh!jc From: jc@uh.msc.umn.edu (Carolyn Wasikowski) Newsgroups: comp.windows.x.motif Subject: Re: MessageBox buttons... Keywords: X motif Message-ID: <2519@uc.msc.umn.edu> Date: 6 Sep 90 14:02:04 GMT References: <248@aldetec.oz> Sender: news@uc.msc.umn.edu Reply-To: jc@msc.umn.edu (Carolyn Wasikowski) Organization: Minnesota Supercomputer Center, Minneapolis, MN Lines: 27 [ I tried sending mail a couple of times to no avail, so here goes: ] Clive Salvidge writes: >I am playing with XmMessageBox() and the like.... >It says in the good book that.. "A MessageBox can contain a message symbol, >a message, and up to three default PushButtons" > >I only want one PushButton (sob), How can I make the other two go away Use something like: XtUnmanageChild(XmMessageBoxGetChild(msgbox, XmDIALOG_CANCEL_BUTTON)); XtUnmanageChild(XmMessageBoxGetChild(msgbox, XmDIALOG_OK_BUTTON)); If you want, you can also rename the remaining button. For example, I only wanted a single "Continue" button: n = 0; XtSetArg(args[n], XmNhelpLabelString, XmStringCreateLtoR("Continue", XmSTRING_DEFAULT_CHARSET)); n++; XtSetValues(msgbox, args, n); -JC -- jc@uh.msc.umn.edu "...and, whether or not clear to you, no doubt the universe is unfolding as it should."