Thanks Gregory. That's exactly what I did and it worked perfectly.
- MM
1) in a loop (or in any other way), you create the resulting text with
default formatting.
2) at the same time, you record (in arrays)
- start/end positions of each string
- its TextFormat
3) When the result text
Hi Michael,
While I don't know the details of your application, I would consider
applying TextFormat only once, when all strings are added.
This means:
1) in a loop (or in any other way), you create the resulting text with
default formatting.
2) at the same time, you record (in arrays)
-
Mendelsohn, Michael wrote:
How can I preserve certain substrings of the text to keep their
assigned
TextFormats?
Before you add text to a text field that has a different format than
the default that you've specified (with setTextFormat), use
setNewTextFormat() on the field and then
Hi list...
I'm trying to concatenate a bunch of strings into one TextField, with
each string using a specific TextFormat. I'm doing a loop of adding
text, formatting that text, then adding more text, formatting it, etc.
The problem is whenever I add new text, the entire text in the TextField
4 matches
Mail list logo