Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Expose and ConfigureNotify events Message-ID: <9011211352.AA11575@Larry.McRCIM.McGill.EDU> Date: 21 Nov 90 13:52:27 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 23 > Using the Xt Translation mechanism, I select for Expose and > ConfigureNotify on a (Form) widget. However, I notice that if I > resize the window using the window manager, then in general I get > both Expose and ConfigureNotify events, except when I make the window > smaller by dragging the right corner inwards; in that case, I only > get a ConfigureNotify (and no Expose event). > Question: I want an Expose event in all cases, i.e. whenever the > window is resized, I want a guaranteed Expose event. Is there a way > to do this? Yes. Set the window's bit-gravity to ForgetGravity. Since this is the default, something somewhere along the line (Xt or the widget set, most likely) is changing it. I suppose you could just bash the bit-gravity of your window, but there's no guarantee that whatever changed it for you in the first place won't helpfully change it back, so you should get out the documentation and find out how to suppress this behavior. (I can't help you there; I don't know Xt or widgets.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu