Path: utzoo!mnetor!uunet!husc6!think!ames!pasteur!agate!eris!bryce From: bryce@eris (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: help: window IDCMP flags Message-ID: <7110@agate.BERKELEY.EDU> Date: 22 Feb 88 06:21:34 GMT References: <584@oscvax.UUCP> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 30 In article <584@oscvax.UUCP> jan@oscvax.UUCP (Jan Sven Trabandt) writes: > >All the following questions pertain to SMART_REFRESH windows... > > What seems weird to me is that *after* I resize the window once, > dragging the window or clicking the menu-button [either in my > window or in the screen/backdrop window] causes my window's > gadgets to be refreshed by the system... If you don't handle REFRESH events, you MUST set the NOCAREREFRESH flag when opening the window. If you do handle REFRESH events, you must call the Begin/EndRefresh() pair to clear the state after each refresh event. It is best to call BeginRefresh(), render your window, EndRefresh(). The reason for this is Intuition. It wants to maintain the borders of your window in nice condition at all times... even if your task is asleep. It needs to know when you have fixed up your window so it can stop refreshing the borders for you. See the first Amiga Transactor for a this and other such hints. You are correct on all other points. |\_/| . ACK!, NAK!, EOT!, SOH! {o o} . Bryce Nesbitt (") BIX: mleeds (temporarily) U USENET: bryce@eris.berkeley.EDU -or- ucbvax!eris!bryce