Article View: comp.sys.sun
Article #10738Re: Sunview question
From: Patrick Thompson
Date: Fri, 03 Feb 1989 14:24
Date: Fri, 03 Feb 1989 14:24
43 lines
1669 bytes
1669 bytes
jao@megatest.uucp (John Oswalt) writes:
> I would like this subwindow to be a TEXTSW, but apparently I cannot
> recieve ascii events from a TEXTSW, ...
You CAN receive ascii events in a TEXTSW. What you have to do is register
an "interposer" function with the Notifier. This will cause all events
directed towards your TEXTSW to be routed through your interposer function
before going to the Base event handler.
After you create your text subwindow, register your interposer function
using the function "notify_interpose_event_func".
For example:
notify_interpose_event_func(my_textsw, My_Interposer, NOTIFY_SAFE);
"My_Interposer" might look something like this:
static void
My_Interposer(frame, event, arg, type)
Frame frame;
Event *event;
Notify_arg arg;
Notify_event_type type;
{
.
.
.
if (event_is_ascii(event))
{
ch = (char) event_id(event);
.
.
.
}
}
- Pat
Patrick Thompson UUCP: {amdahl, hplabs, ames}!bnrmtv!thompson
Los Gatos, California ARPA: bnrmtv!thompson@ames.arpa
Work: (415) 940-2597
"irie" Home: (408) 354-9615
Technical Details
Message-ID:
<8901271839.AA17534@bnrmtv>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: bnrmtv!thompson@ames.arc.nasa.gov (Patrick Thompson) Newsgroups: comp.sys.sun Subject: Re: Sunview question Message-ID: <8901271839.AA17534@bnrmtv> Date: 3 Feb 89 14:24:19 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 43 Approved: Sun-Spots@rice.edu Original-Date: Fri, 27 Jan 89 10:33:25 PST X-Sun-Spots-Digest: Volume 7, Issue 138, message 3 of 10