Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!ncar!unmvax!uokmax!kpmiller From: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller) Newsgroups: comp.sys.mac.programmer Subject: EditText question Message-ID: <1991Apr30.010156.4752@uokmax.ecn.uoknor.edu> Date: 30 Apr 91 01:01:56 GMT Sender: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller) Organization: Engineering Computer Network, University of Oklahoma, Norman, OK Lines: 19 I have some source code that looks like this: TESetSelect(0, 300, TE_Edit_Text); TEDelete(TE_Edit_Text); TEUpdate(TE_Rect_Edit_Text, TE_Edit_Text); TESetText(@st[1], length(st), TE_Edit_Text); This usually works fine. But, if I select a little part of the text before this code gets executed, The text gets screwed up when it gets pumped into the area. For instance, if I try to pump in the a string, and I select some of the original text in the area first, the first 4 characters are invisible. What am I doing wrong? Kent Miller -- ----------------------- Kent Miller KENT@aardvark.ucs.uoknor.edu Bitnet -> KENT@uokucsvx