Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC 4.0 cdev and editText items!! Message-ID: <1990Dec14.220133.8499@ux1.cso.uiuc.edu> Date: 14 Dec 90 22:01:33 GMT References: <1990Dec14.213435.9514@noose.ecn.purdue.edu> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 20 moyman@ecn.purdue.edu writes: >What's the deal with textEdit items inside the cdev dialog!! > /* Setting the initial text in all of the editable text fields */ > aStr = GetString(SysStrID); > GetDItem(dp,lastItem+SysTextID,&itemType,&itemHandle,&itemRect); > SetIText( itemHandle, *aStr); I always do a SelIText(CPDialog, myItem+numItems, 0, 32767) on the first editText item in my DITL. Also, remember to do an InvalRect if you change the text after initialization. Other than that, it should work fine. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD