Path: utzoo!utgpu!water!watmath!clyde!att!att-ih!pacbell!ames!soe From: soe@ames.arpa (Brad Soe) Newsgroups: comp.sys.mac.programmer Subject: TextEdit Item in a dlog Message-ID: <8006@ames.arpa> Date: 28 Apr 88 14:26:03 GMT Organization: NASA Ames Research Center, Moffett Field, CA Lines: 27 I was wondering about an item that is declared "editText" in a resources template. Is it just like a "TEHandle"? Can you Call: GetDItem(dialog, itemno, &type, &tehandle, &rect); TEIdle(tehandle); (or any Textedit routine) I want to use a textEdit and a scroll bar in a dialog window, I tried to declare a textedit item for the window, and a user Item for the scroll bar, but the "tehandle" that I declared and stored in the item list does'nt act like I expect it to. I want to be able to access some of the "TEHandle" to calculate the postion of the scroll bar at any given time. Can you do this: GetDItem(dialog, itemno, &type, &tehandle, &rect); tehandle = TENew(&rect, &rect); and then use this handle??? Or am I way off track. Any help would be appreciated. Brad Soe internet : soe@ames.arc.nasa.gov NASA Ames Research Ctr. Mail Stop 233-18 Moffett Field, CA 94035 (415) 694-4866