Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!zaphod.mps.ohio-state.edu!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: Resize and expose event in Xt Message-ID: <883@auto-trol.UUCP> Date: 15 Oct 90 21:20:26 GMT References: <1990Oct12.205123.27352@vicorp.com> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Distribution: usa Organization: Auto-trol Technology, Denver Lines: 23 In article <1990Oct12.205123.27352@vicorp.com> daniel@vicorp.UUCP (Daniel Dee) writes: >As I understand it, one or more expose event should follow a resize >event and this is exactly what happens in Xlib. When I converted >my program to using Xt though, I stop getting expose event >after resize if I reduce the size my window. Expanding the >window continues to work fine. What is your window's bit_gravity member ? The default, often used by Xt widgets, is NorthWestGravity. If you "shrink" such window, you should not get an exposure event (though the server has the right to send you one - we are talking X here-). I am forcing bit_gravity to ForgetGravity in widgets where I want to get exposure event on resize/shrink, and it seems to work right for me. -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky [BORN TO BASH UIL] marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404