Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uunet!olivea!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple2 Subject: Re: Help with an editLine in a dialog box Message-ID: <48809@apple.Apple.COM> Date: 4 Feb 91 19:48:25 GMT References: <43356@ut-emx.uucp> Organization: Apple Computer Inc., Cupertino, CA Lines: 21 In article <43356@ut-emx.uucp> daveh@ccwf.cc.utexas.edu (David H. Huang) writes: >How do I get the handle (or is it a pointer?) to the editline text? According >to the Toolbox ref's Dialog manager chapter, the item descriptor of an editline >is the pointer to the default string (this is a pascal string, right?) and >the item value is the maximum length of the text. No where does it mention >how to get at this text. Also, when I type into the editLine, the cursor >moves, but nothing shows up... You want GetIText, page 6-56 (Dialog Manager). Most likely your text is now showing up because your item rectangle isn't tall enough--I think 10(?) pixels tall is a good height (allow one pixel above and below the hilited text before you hit the frame rectangle). -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II System Software Engineer | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.