home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / motif / 5928 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.3 KB  |  34 lines

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