Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: billr@saab.cna.tek.com (Bill Randle) Newsgroups: comp.sys.sun Subject: need help with catching L7 frame open/close Keywords: Windows Message-ID: <3730@tekred.CNA.TEK.COM> Date: 31 Mar 89 12:32:42 GMT Sender: usenet@rice.edu Organization: Tektronix, Inc., Redmond, OR Lines: 22 Approved: Sun-Spots@rice.edu Original-Date: 17 Mar 89 21:01:15 GMT X-Sun-Spots-Digest: Volume 7, Issue 219, message 14 of 16 I'm writing a SunView application program that needs to know when the frame is being opened or closed in order to do some specific processing. I know about interposers and have a 'notify_interpose_event_func' function that looks at the current closed status, lets the event happen then checks again per the example in the SunView manual. This works just fine when I close the frame from the frame menu. When the interposition function is called the frame state is open, then next state is closed so I can do the frame closing processing. The problem comes in when I close with the L7 key. When the interposer is called the frame is already closed! I tried explicitly looking for L7 in the list of events that my canvas looks for and can detect that L7 was hit and do my special processing. However, when L7 is hit while the cursor is in the control panel, the routine is not called (even though I set PANEL_BACKGROUND_PROC). Does anyone have any ideas? Why isn't the interposer routine called before the frame is closed with L7, like it is with the frame menu? -Bill Randle Tektronix, Inc. billr@saab.CNA.TEK.COM