Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!purdue!decwrl!labrea!polya!kaufman From: kaufman@polya.STANFORD.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: TextEdit Item in a dlog Message-ID: <2723@polya.STANFORD.EDU> Date: 30 Apr 88 04:08:23 GMT References: <8006@ames.arpa> Reply-To: kaufman@polya.stanford.edu (Marc T. Kaufman) Organization: Stanford University Lines: 20 In article <8006@ames.arpa> soe@ames.arpa (Brad Soe) writes: >I was wondering about an item that is declared "editText" in >a resources template. Is it just like a "TEHandle"? No, it is a handle to an "editText item", which, in fact, contains the handle to the text (I believe in the first 4 bytes, but I may be wrong on this). >Can you Call: >GetDItem(dialog, itemno, &type, &tehandle, &rect); >TEIdle(tehandle); (or any Textedit routine) No, for the reason stated above. However, if the TEHandle to the CURRENTly active text is in the textH field of the DialogRecord (i.e. in dialog^.textH You can select a specific text item with SelIText(dialog, itemNo, start, end); See IM-I-408,422 Marc Kaufman (kaufman@polya.stanford.edu)