[comp.sys.sun] WIN_EVENT_PROC

eswara@deervax.concordia.ca (Srinivas Eswara) (11/29/88)

I have an application with Textsw's where I need to be notified everytime
then user presses <return>. I tried using WIN_EVENT _PROC, which is
suposed to call my procedure for any input event, but nothing happens.
This proc works fine for canvas and other surfaces but apparently, textsw
grabs all input itself and does not allow any user defined procs, because
all normal functions like mouse input handling, keyboard handling, go on
inspite of WIN_EVENT_PROC. 

Any ideas, please? And if I get this working, do I have to handle all
input in my proc or can I call the default proc (?) after I do my
processing of <return>?

Thanks,
Srinivas Eswara,
Concordia University, MTL
eswara@deervax.concordia.ca

jsb@uunet.uu.net (The Invisible Man) (12/14/88)

eswara@deervax.concordia.ca (Srinivas Eswara) writes:
)I have an application with Textsw's where I need to be notified everytime
)then user presses <return>. I tried using WIN_EVENT _PROC, which is
)suposed to call my procedure for any input event, but nothing happens.

I use notify_interpose_event_proc() with a Textsw for exactly this
purpose.  You can probably use the same proc you were using as
WIN_EVENT_PROC with minor changes.

	jim (uunet!actnyc!jsb)