Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!ucbvax!osf.org!meeks From: meeks@osf.org (W. Scott Meeks) Newsgroups: comp.windows.x.motif Subject: Re: PushButton Pixmap problems Message-ID: <9010221401.AA17882@osf.osf.org> Date: 22 Oct 90 14:01:51 GMT References: <143888@sun.Eng.Sun.COM> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 25 >From: argv@sun.com (Dan Heller) > >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 In version 1.1 the restriction on the directories for XmGetPixmap are actually loser than this implies. First, the user can specify an environment variable XBMLANGPATH which will be used to generate a set of default paths. Second, XmGetPixmap will recognize an absolute path on a Unix system (a path beginning with '/') and use that as the file to open. Finally, the current working directory is always searched by default if neither an absolute path or XBMLANGPATH are specified. If you have any more questions on this please ask me. W. Scott Meeks Open Software Foundation meeks@osf.org (617) 621-7229