[comp.windows.x] wanted: help subclassing Xaw TextSrc widget

mwette@csi.jpl.nasa.gov (Matt Wette) (06/07/91)

I'm working on a Text-type widget.  I've written a subclass of
TextSrc.  It includes the Read and Scan methods and interits the
remainder.  Through imbedded print function calls I can see that
Read() is returning text but the text never get displayed in the
window (an AsciiSink).  I'm lost.  Would anybody be willing to
help me on this one?

The following is a history of Read, Scan, and GetInput() calls:
(GetInput() grabs input from a file descriptor via XtAppAddInput)

Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 0
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 0
Read(pos=0) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=1) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=0) = 0
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 0
Read(pos=0) = 0
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 0
Read(pos=0) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=1) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=0) = 0
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 0
Read(pos=0) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=1) = 0
Scan(pos=0,typ=XawstEOL,dir=XawsdRight,cnt=1,inc=0) = 0
GetInput() = 498
GetInput() = 498
GetInput() = 498
GetInput() = 498
GetInput() = 498
GetInput() = 498
GetInput() = 361
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 3349
Read(pos=0) = 498
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 3349
Read(pos=0) = 498
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 3349
Scan(pos=0,typ=XawstAll,dir=XawsdRight,cnt=1,inc=1) = 3349
Read(pos=0) = 498
 ... program `hangs' here ...


Thanks,
Matt
-- 
 _________________________________________________________________
 Matthew R. Wette           | Jet Propulsion Laboratory, 198-326
 mwette@csi.jpl.nasa.gov    | 4800 Oak Grove Dr, Pasadena,CA 91109
 -----------------------------------------------------------------