Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x.motif Subject: Re: Creating a Pixmap from a .xbm file Message-ID: <1991Feb7.152122@wsl.dec.com> Date: 7 Feb 91 23:21:22 GMT References: <19966@shlump.nac.dec.com> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 14 In article <19966@shlump.nac.dec.com>, p_davis@epik.enet.dec.com (Peter Davis) writes: |> |> 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? XCreateBitmapFromData(). A bitmap is a pixmap with depth 1. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee