Path: utzoo!utgpu!utfyzx!oscvax!jan From: jan@oscvax.UUCP (Jan Sven Trabandt) Newsgroups: comp.sys.amiga Subject: help: window IDCMP flags Message-ID: <584@oscvax.UUCP> Date: Sat, 20-Feb-88 19:10:51 EST Reply-To: jan@oscvax.UUCP (Jan Sven Trabandt) Distribution: na Organization: Ontario Science Centre, Toronto Lines: 40 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?? 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 When I get an ACTIVEWINDOW event I do a SetWindowTitles(). When I get a GADGETUP I might do a RefreshGadgets(). When I get a NEWSIZE event I do a ModifyProp(), RefreshGadgets(), SetWindowTitles(), SetRast() [on the window], and PrintIText() some data into the window [though not in that order]. 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 (which it didn't cause prior to the resizing). Any ideas on what is causing this nuisance?? Thanks in advance, Jan Sven -------------------------------------------------------- "Violence is the last resort of the incompetent" - Hari Seldon, 'The Foundation Trilogy' (Isaac Asimov) Mind like parachute - function only when open! Jan (Jan, from Amsterdam) no-hyphen Sven Trabandt ...!{allegro,ihnp4,decvax,pyramid}!utzoo!oscvax!jan