Getting a chunk of stylized text?
depstein at att.net
depstein at att.net
Fri Feb 21 16:16:01 EST 2003
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 <dan at clearvisiontech.com>
...
> 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)
More information about the use-livecode
mailing list