Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!seismo!uunet!samsung!think.com!linus!linus!mbunix.mitre.org!lfs From: lfs@mbunix.mitre.org (Sheats) Newsgroups: comp.windows.x.motif Subject: XmMessageBox and XmDIALOG_NONE in Motif 1.0.3 Message-ID: <1991Feb6.191122.1072@linus.mitre.org> Date: 6 Feb 91 19:11:22 GMT Sender: news@linus.mitre.org (News Service) Distribution: na Organization: The MITRE Corp., Bedford MA Lines: 18 Originator: lfs@mbunix.mitre.org Nntp-Posting-Host: mbunix.mitre.org Maybe someone could answer the following: The OSF/Motif Programmer's Reference Revision 1.0 (Prentice Hall) claims that the XmNdefaultButtonType resource specifies the default PushButton, and this resource can be one of: XmDIALOG_CANCEL_BUTTON, XmDIALOG_OK_BUTTON, XmDIALOG_HELP_BUTTON. The default is XmDIALOG_OK_BUTTON. However, my Xm.h file tells me something different: #define XmDIALOG_NONE 0 /* a valid default button type */ When I set the XmNdefaultButtonType resource to XmDIALOG_NONE (on my warning dialog), sure enough, there is no default button. What I am wondering (I hope this doesn't sound too silly): Is what I am doing reasonable (even though the documentation seems to indicate otherwise)? I'm using Motif 1.0.3, and plan to upgrade to 1.1 very shortly. Can I expect the same behavior in Motif 1.1? Any help would be appreciated.