Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!aisl From: aisl@uhura.cc.rochester.edu (Lawrence Landry) Newsgroups: comp.sys.mac.hypercard Subject: Re: "line height and auto wraparound" Message-ID: <2324@ur-cc.UUCP> Date: 20 Jun 89 18:36:58 GMT References: <214100003@s.cs.uiuc.edu> Reply-To: aisl@uhura.cc.rochester.edu (Lawrence Landry) Organization: University of Rochester Lines: 25 In article <214100003@s.cs.uiuc.edu> detert@s.cs.uiuc.edu writes: > > >Is it possible for a script to determine whether a given string, containing no >carriage returns, can be placed in a particular field (window) and have each >char. of the string be immediately visible? > I haven't actually tried this but something like the following may work with a little bit of effort. 1) Shift-click at the end of the text to place the cursor either at the end of the text or to select all of the text from here to the end of the text. 2) Use one of the new functions of HC 1.2 that allow you to find what has been selected (ie. selectedChunk). If you are at the end of the text (ie. it is all visible) the selection should be empty. If not, it will be something like char 25 to 28 of bg fld "temp" Hope it helps, Larry Landry University of Rochester -- Larry Landry University of Rochester