need help with catching L7 frame open/close

Bill Randle billr at saab.cna.tek.com
Fri Mar 31 22:32:42 AEST 1989


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 at saab.CNA.TEK.COM



More information about the Comp.sys.sun mailing list