Path: utzoo!mnetor!uunet!husc6!think!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: help: window IDCMP flags Message-ID: <8802212219.AA06548@cory.Berkeley.EDU> Date: 21 Feb 88 22:19:16 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 42 : :Howdy howdy. : :I have a few questions pertaining to windows, IDCMP flags and gadgets. :All the following questions pertain to SMART_REFRESH windows. : :1 - I thought I once saw a way to set the flags so that you only get : REFRESHWINDOW events when the window is enlarged (ie not smaller) : but I can't figure it out so I filter them myself. : :2 - It looks like doing a RefreshGadgets() causes a REFRESHWINDOW event : (if that flag is set in the IDCMP). Is that really so?? SMART_REFRESH windows get REFRESHWINDOW events. Usually, I just add NOCAREREFRESH to NewWindow.Flags. If you do not, you *must* handle the event. Use the NEWSIZE IDCMP to handle being informed when the window is resized. : :3 - I have a window with several custom gadgets (scroll bars) : as well as the system close, drag, depth and resize gadgets. : My IDCMP flags are: CLOSEWINDOW | GADGETUP | GADGETDOWN : | NEWSIZE | ACTIVEWINDOW :... : window or in the screen/backdrop window] causes my window's : gadgets to be refreshed by the system (which it didn't cause prior : to the resizing). : Any ideas on what is causing this nuisance?? : :Thanks in advance, :Jan Sven Because you are not handling the refresh message, and they stack up. It doesn't matter that you do not specify it in the IDCMP. Solution: Set NOCAREREFRESH in your window's flags (i.e. in the NewWindow structure). -Matt