Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!husc6!think!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!zaphod!newton!clam From: clam@newton.ncsa.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Using Textedit in Paint programs Message-ID: <900011@newton> Date: 16 Oct 88 08:39:00 GMT Article-I.D.: newton.900011 Lines: 18 Nf-ID: #N:newton:900011:000:683 Nf-From: newton.ncsa.uiuc.edu!clam Oct 16 03:39:00 1988 I am trying to write a color paint program. I would love to know how I can make use of TextEdit to implement the text tool in the tool palette (the 'A' icon). Specifically: [1] How do I prevent existing graphics that is in the view rect of text edit record from being erased? [2] When the user types , how do I erase the last character and restore the background graphics that was replaced by the character? All existing paint programs seem to be able to do this quite well and I suspect they make use of text edit since they have the blinking text caret to prompt users to enter text. Is this true? Thanks in advance, Chih-Chao Lam lam@sumex-aim.stanford.edu