Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Insertion point in cdev. Message-ID: <1991Apr15.043144.13345@ux1.cso.uiuc.edu> Date: 15 Apr 91 04:31:44 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 19 I have encountered a small problem in my cdev. I want to turn an EditText box into a StatText box on the fly as part of my initDev routine; under certain conditions, I want one of my text boxes not to be editable. So I do the following (in C): GetDItem(CPDialog, ITEM_NUMBER + numItems, &tempType, &tempHandle, &tempRect); SetDItem(CPDialog, ITEM_NUMBER + numItems, statText, tempHandle, &tempRect); Well, that works fine, except for the fact that I still have the cute little insertion point flashing in my now apparently static text field. How do I get rid of it? 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