home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!ods!chris
- From: chris@ods.com (Chris Atkins)
- Subject: Re: color background image for widgets
- Message-ID: <1992Aug31.205437.25407@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL5
- References: <1992Aug30.204133.14912@aristo.tau.ac.il>
- Date: Mon, 31 Aug 1992 20:54:37 GMT
- Lines: 22
-
- danny khen (danny@virgo.math.tau.ac.il) wrote:
- : Hello Xperts,
- :
- : I would like to set a color image to be the background
- : of widgets (diverse - shells, pushButtons, ...). The
- : closest I get is use the backgroundPixmap resource, but this
- : only works for xbm files (which are 1-bit deep images),
- : displaying them with the foreground & background colors of
- : the widget. This is not good enough for my application.
- :
- : I'll be grateful for any clue. Please e-mail answers
- : to the address in the signature.
- :
- You can create a pixmap of the desired depth, place the image into the pixmap
- and then set the backgroundPixmap resource to be the value of the pixmap
- containing the image. Placing the image into the pixmap must be done outside of
- motif. If you are using UIL, you can create multi color pixmaps in UIL and
- have them read in for you. You might look at the XPM routines for loading
- multicolor pixmaps.
-
- Chris Atkins
- chris@ods.com
-