home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!ames!agate!dog.ee.lbl.gov!epb11.lbl.gov!envbvs
- From: envbvs@epb11.lbl.gov (Brian V. Smith)
- Newsgroups: comp.windows.x
- Subject: Re: Updating pixmaps in label widgets
- Date: 16 Nov 1992 19:02:08 GMT
- Organization: lbl
- Lines: 23
- Distribution: world
- Message-ID: <27481@dog.ee.lbl.gov>
- References: <9211131740.AA00262@spike.ora.com>
- NNTP-Posting-Host: 128.3.12.123
-
- In article <9211131740.AA00262@spike.ora.com>, adrian@ora.COM (adrian) writes:
- |>
- |> Someone asked a few days ago how to make a Label widget redraw its
- |> pixmap. The problem comes up when you want the Label widget to
- |> display a pixmap that is changing. Since the pixmap ID remains
- |> constant, there is no way for the widget to know the pixmap has
- |> been written to.
-
- This is a problem that keeps coming up in xfig. I assumed that the Intrinsics
- would know that an XSetValues() call to set the pixmap of the widget should
- send the widget an expose event, but it doesn't. My solution was to call
- XSetValues twice, once with backgroundPixmap ID of 0 then with the correct ID.
-
- The very strange thing is that the top and side rulers work excatly the same
- way (a pixmap in a label widget), but only in version 2.1.5 does the problem
- that the pixmap doesn't get updated occur, and ONLY in the side ruler. The
- top ruler and side ruler code is virtually identical, but only one exhibits
- the problem.
-
- --
- Brian V. Smith (bvsmith@lbl.gov)
- Lawrence Berkeley Laboratory
- I don't speak for LBL; they don't pay me enough for that.
-