Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!uarthur!wds From: wds@uarthur.UUCP (William D. Sheppard) Newsgroups: comp.windows.x.motif Subject: Re: MessageBox buttons... Summary: Removing unwanted button in XmMessageBox Keywords: X motif Message-ID: <2@uarthur.UUCP> Date: 6 Sep 90 18:30:45 GMT References: <248@aldetec.oz> Lines: 22 >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 You need to use the XmMessageBoxGetChild (Programmers Reference page 1-611) to access the button widgets that you want to remove. Then use the Intrinsics routine XtUnmanageChild to get rid of the unwanted buttons. For example to remove the help button: Widget helpButtonWidget; helpButtonWidget = XmMessageBoxGetChild(messageBoxWidgetID, XmHELP_BUTTON); XtUnmanageChile(helpButtonWidget); Bill Sheppard Consultant World Bank, Washington DC