Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!apple.com!rmh From: rmh@apple.com (Rick Holzgrafe) Newsgroups: comp.sys.mac.hypercard Subject: Re: How to find the number of lines when they wrap Message-ID: <10589@goofy.Apple.COM> Date: 5 Oct 90 22:11:11 GMT References: <1627taylorj@yvax.byu.edu> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 17 In article <1627taylorj@yvax.byu.edu> taylorj@yvax.byu.edu writes: > The basic idea is to scroll to the end of the field and calculate > the number of lines using the scroll value and the text height Nifty! But, a warning about a variant that may fail: I tried this recently but instead of "select after text of " I used "set scroll of to 32000". HC 2.0 (I don't know about HC 1.x) pins the scroll to reasonable values, so you can then "get scroll" and see what the max scroll is. The rub: it doesn't pin the scroll when you lock screen! ========================================================================== Rick Holzgrafe | {sun,voder,nsc,mtxinu,dual}!apple!rmh Software Engineer | AppleLink HOLZGRAFE1 rmh@apple.com Apple Computer, Inc. | "All opinions expressed are mine, and do 20525 Mariani Ave. MS: 3-PK | not necessarily represent those of my Cupertino, CA 95014 | employer, Apple Computer Inc."