I've found this handler in my "code repository", mabe it helps.
valentin
---
-- returns hardwrapped text of given field or text member
---
on hardWrap m
s=""
y=0
n=1
c=m
At 11:43 Uhr -0500 16.03.2004, roymeo wrote:
>Is there a way to detect via Lingo whether a line of text has wrapped?
you mean something like:
if theLine > 1 then first = textmember.line[1 .. (theLine - 1)].char.count + 2
else first = 1
last = textmember.line[theLine].char.count + first - 1
put t
Yes! Thank you.
I'm importing .rtf text, so I don't have to deal with the text
formatting. But there are of course some weird things that don't translate
directly from the .rtf file to Directorand separating that header line
by adding a return after the wrap means that the wacky kerning w
probably a couple of ways.
1). look at the position of the last character of the line and compare that
to the position of the first character using charPosToLoc or something like
that. If the last character has a different locV then its wrapped down at
least one line.
2). put the text in the fiel
Is there a way to detect via Lingo whether a line of text has wrapped?
Charpostoloc will tell you. If the Y coordinate of the first
character of the line is not the same as the Y coordinate of the last
character, then it wrapped.
[To remove yourself from this list, or to change to digest mode, g
On Mar 16, 2004, at 10:43 AM, roymeo wrote:
Is there a way to detect via Lingo whether a line of text has wrapped?
In a #field I believe you can do a count of the number of lines vs. the
number of returns. It might be more kinky with #text.
Warren Ockrassa | President, nightwares LLC [EMAIL PR