Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!alberta!ubc-cs!uw-beaver!mit-eddie!husc6!uwvax!puff!avery From: avery@puff.cs.wisc.edu (Aaron Avery) Newsgroups: comp.sys.amiga.tech Subject: Re: Window refreshing Keywords: Can Intuition do it automatically when the window is resized? Message-ID: <1569@puff.cs.wisc.edu> Date: 16 Apr 88 11:02:41 GMT References: <418@hvrunix.UUCP> Reply-To: avery@puff.cs.wisc.edu (Aaron Avery) Organization: U of Wisconsin CS Dept Lines: 18 In article <418@hvrunix.UUCP> ahinds@hvrunix.UUCP (Alexander Hinds) writes: >a problem. In my window, I write some text. However, when it is resized, >the text that was obscured doesn't get refreshed. I do, however, have the >SMART_REFRESH flag set. I thought that that would do it. But it doesn't. >Write now, I'm refreshing it myself whenever I get NEWSIZE events from >Intuition. Is there an automatic way of accomplishing what I want to do? If you read the manuals thoroughly, you'd find that the only case where SMART_REFRESH fails to entirely fix your window's display is when the user resizes the window smaller, then larger. The NEWSIZE events are intuition's solution to this dilemma. Depending on your specific application I'd suggest using the SUPER_BITMAP type of refresh. This mode allows the window to easily display a portion of the actual bitmap it's displaying, without any damage ocurring. Investigate it further, and I hope that helps. -- Aaron Avery (avery@puff.cs.wisc.edu) ({seismo,caip,allegra,harvard,rutgers,ihnp4}!uwvax!puff!avery)