From: Julie Goldberg

Subject: text editing

Date: 1997-6-26 11:25

	I am working on an application that displays text in a window.  I
use an io stream, because I read the text from a file but I also add some
annotations in that are not displayed to the user.  As it stands, the user
can type in the window to add things to the stream; however, doing so
messes up other parts of the window.  Restricting the user's ability to
type in the window (where the user must be allowed to highlight text) is
probably difficult an undesirable anyhow.  I would prefer to allow the
user to type in the window, as long as I process the the text as is before
the user types and as long as I process it after the user finishes as
well.  This could easily be done by making an inherited class for my pane
and including before and after methods.  
	My problem is figuring out when the user starts typing; what
should my before and after methods be before and after methods for?  I
would think there must be some sort of event that would signal the start
of typing at least, but I cannot identify one by looking through the ACL
help.  Does anyone have any suggestions?  Thanks a lot. 

Julie Goldberg

------
http://www.csuglab.cornell.edu/home/jgoldber/