Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!s.cs.uiuc.edu!detert From: detert@s.cs.uiuc.edu Newsgroups: comp.sys.mac.hypercard Subject: "line height and auto wraparound" Message-ID: <214100003@s.cs.uiuc.edu> Date: 13 Jun 89 15:15:00 GMT Lines: 20 Nf-ID: #N:s.cs.uiuc.edu:214100003:000:960 Nf-From: s.cs.uiuc.edu!detert Jun 13 10:15:00 1989 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? The problem is that i have fields that have a fixed width, but can vary in height, and i don't want them to be any taller than necessary to reveal the entire string that they hold. So, i need a way to figure out how many "lines" of the particular field are necessary to encompass the entire string. NOTE: by "line" i don't mean the HyperTalk conception of strings separated by carriage returns, but instead a horizontal slice of the particular field having height equal to the height in pixels of the particular font/size comb- ination of text. I'm fairly sure that HyperTalk offers no solution or work-around. I know almost nothing about XCMDs and XFCNs. I would appreciate any advice on the problem. Thank You, Jon Detert. detert@s.cs.uiuc.edu