Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!infonode!ingr!b11!hottub!kendall From: kendall@hottub.b11.ingr.com (Kendall Schmidt) Newsgroups: comp.windows.x.motif Subject: Re: Can I disable buttons on an XmMessageBox widget? Message-ID: <1991Jun13.124517.10288@b11.ingr.com> Date: 13 Jun 91 12:45:17 GMT References: <500@tymix.Tymnet.COM> Sender: @b11.ingr.com Reply-To: kendall@ingr.com Organization: Intergraph Corp. Huntsville, AL. Lines: 26 In article <500@tymix.Tymnet.COM>, steve@gabriela.Tymnet.COM (Steve Sandke) writes: |> Sorry if this is a basic question... |> |> I'd like to "turn off" some of the buttons (Help, for example) on an XmMessageBox widget. Simply |> greying them out would be enough. I know how to do this for a widget, but I don't have an actual widget |> for the buttons. |> |> Any help would be greatly appreciated. |> |> -- After you create the message box you can get the widget id of one of its children by calling XmMessageBoxGetChild. You can then unmanage the child widget of the message box. Ex: XtUnmanageChild( XmMessageBoxGetChild(myMessageBox, XmDIALOG_CANCEL_BUTTON)); XtUnmanageChild( XmMessageBoxGetChild(myMessageBox, XmDIALOG_HELP_BUTTON)); This will unmanage both the help and cancel buttons of the message box. -- Kendall Schmidt | Intergraph Corp. | e-mail: Graphics Standards | Huntsville, AL. | kendall@ingr.com X Window System | 205-730-4061 | uunet!ingr!kendall