home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / motif / 5762 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!ods!chris
  3. From: chris@ods.com (Chris Atkins)
  4. Subject: Re: How can I change fg and bg in label's pixmap
  5. Message-ID: <1992Aug21.190022.27410@ods.com>
  6. Organization: Optical Data Systems, Inc.
  7. X-Newsreader: Tin 1.1 PL5
  8. References: <1992Aug19.203103.3481@gvl.unisys.com>
  9. Date: Fri, 21 Aug 1992 19:00:22 GMT
  10. Lines: 15
  11.  
  12. Robert Smith (smith@beech.NoSubdomain.NoDomain) wrote:
  13. : I am trying to exchange foreground and background colors in a label widget
  14. : with type set to pixmap.  I can do it if the label widget is of type string
  15. : by using XtSetValues to change background and foreground and forcing an
  16. : expose event.  This will not work when I use a pixmap.  I've tried getting
  17. : the pixmap and doing a XCopyArea with a gc with reversed foreground and
  18. : background and setting the label widget's pixmap to this new pixmap.
  19. : This was easy to do with Athena widgets. 
  20. You need to either have 2 pixmaps and swap them out, or get the pixmap back to
  21. your program and do the conversion yourself.
  22.  
  23. Chris Atkins
  24. chris@ods.com
  25.