Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!sun-barr!newstop!sun!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: comp.windows.x.motif Subject: Re: PushButton Pixmap problems Message-ID: <143888@sun.Eng.Sun.COM> Date: 18 Oct 90 18:07:23 GMT References: <12110003@hpfcbig.SDE.HP.COM> Sender: news@sun.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 22 In article <12110003@hpfcbig.SDE.HP.COM> jcw@hpfcbig.SDE.HP.COM (Judy Walker) writes: > I am having a problem now with using the PushButton > capabilities to display a pixmap image. I read a pixmap file using > XReadBitmapFile, set the XmNlabelPixmap resource to the pixmap, and > set the argument XmNlabelType to XmPIXMAP. When the server > tries to display it, I receive this message: > > Received fatal error from window system: BadMatch, invalid paramete > r attributes Chances are that the pixmap is 1-bit deep and your screen is more than 1-bit deep (e.g., it's color). You can't mix pixmaps and windows that have differing depths. You can avoid this problem by using XmGetPixmap rather than XReadBitmapFile(). However, the file must be in one of a set of predesignated directories. (I forget what the specifics on this are, but it includes /usr/include/X11/bitmaps, I believe). -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.