Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!epik.enet.dec.com!p_davis From: p_davis@epik.enet.dec.com (Peter Davis) Newsgroups: comp.windows.x.motif Subject: Creating a Pixmap from a .xbm file Message-ID: <19966@shlump.nac.dec.com> Date: 7 Feb 91 22:42:21 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 14 I'd like to be able to dynamically pass a bitmap to an XmToggleButton widget to be used as either the labelPixmap or the selectPixmap. The actual data bits are in an xbitmap file which I'd like to #include in my c source. Is there an easy way to do this? The Programmer's Reference indicates that the labelPixmap and selectPixmap resources must be set with data of type Pixmap. In other words, in order to use XtSetArg to set the value of the widget's resource, I have to pass a Pixmap. Is this an X pixmap? Do I have to create a Pixmap, draw the picture into it, and then pass it? Is there an easy way to do this from an X bitmap file? Thanks. -pd