Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!husc6!think!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!lam From: lam@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Using TextEdit in Paint programs Message-ID: <226000030@uxe.cso.uiuc.edu> Date: 16 Oct 88 18:41:00 GMT Article-I.D.: uxe.226000030 Lines: 18 Nf-ID: #N:uxe.cso.uiuc.edu:226000030:000:683 Nf-From: uxe.cso.uiuc.edu!lam Oct 16 13:41: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