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: How can I change fg and bg in label's pixmap
- Message-ID: <1992Aug21.190022.27410@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL5
- References: <1992Aug19.203103.3481@gvl.unisys.com>
- Date: Fri, 21 Aug 1992 19:00:22 GMT
- Lines: 15
-
- Robert Smith (smith@beech.NoSubdomain.NoDomain) wrote:
- : I am trying to exchange foreground and background colors in a label widget
- : with type set to pixmap. I can do it if the label widget is of type string
- : by using XtSetValues to change background and foreground and forcing an
- : expose event. This will not work when I use a pixmap. I've tried getting
- : the pixmap and doing a XCopyArea with a gc with reversed foreground and
- : background and setting the label widget's pixmap to this new pixmap.
- :
- : This was easy to do with Athena widgets.
- :
- You need to either have 2 pixmaps and swap them out, or get the pixmap back to
- your program and do the conversion yourself.
-
- Chris Atkins
- chris@ods.com
-