Path: utzoo!attcan!uunet!husc6!bloom-beacon!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: question regarding exposure events in toolkit Message-ID: <19880816124539.5.RWS@KILLINGTON.LCS.MIT.EDU> Date: 16 Aug 88 12:45:00 GMT References: <8808151959.AA04645@cheerios.ai.mit.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 Date: Mon, 15 Aug 88 15:59:16 EDT From: dms@wheaties.ai.mit.edu (David M Siegel) Whenever the window gets any kind of real exposure event (that is, some rectangle of the window has really changed) I want to redraw the entire window (to keep things simple). Thus, it's necessary for the exposure events to be "compressed". Register an ExposeProc for the widget, and set the widget's compress_exposure field to TRUE. The Intrinsics will compress multiple exposures down into a single region for you, which you can either ignore when redrawing the entire window, or which you can use as a clip-mask if you choose. See section 10.9.1 of the R2 Intrinsics manual.