There are probably faster ways to do this, but try this:
function extraText f
-- returns the htmlText that overflows size of fld f
-- and deletes it from field f
repeat with c = 1 to length(fld f)
if the formattedHeight of char 1 to c of fld f > the height of fld f then
put the htmlText of char c to -1 of fld f into myHtml
delete char c to -1 of fld f
return myHtml
end if
end repeat
return empty
end extraText
David Epstein
> Getting a chunk of stylized text?
> From: Dan Friedman <[EMAIL PROTECTED]>
...
> Let's say field A contains more text than can fit in it. The text in field
> A contains multiple fonts, styles and sizes. How can I get the stylized
> text that is not being displayed? (and remove it from field A and put it
> into field B)
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution