home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!sdd.hp.com!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: envbvs@epb11.lbl.gov (Brian V. Smith)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: Updating pixmaps in label widgets
- Message-ID: <1992Nov17.112952.14313@sm.sony.co.jp>
- Date: 17 Nov 92 11:29:52 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: lbl
- Lines: 29
- Approved: michael@sm.sony.co.jp
-
- Date: 16 Nov 1992 19:02:08 GMT
- Message-Id: <27481@dog.ee.lbl.gov>
- Newsgroups: comp.windows.x
- References: <9211131740.AA00262@spike.ora.com>
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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.
-