text formatting
John Allijn
john.allijn at alice.nl
Sat Jul 9 03:22:12 EDT 2011
Hi,
I have a textfield where I want to present a chunk of text, formatted in a few different styles.
This is what the text looks like:
---
On <timestamp>
<firstname> <Lastname> wrote:
<message text>
---
and this is how I like to represent it:
- the text "on timestamp" should be gray and 8 points
- the firstname and lastname should be 10 points, black and bold
- the message should be 16 points, blue, regular.
- put in a divider-line
The problem is that the message-text varies in length and that there may be multiple messages in the field. This means (but maybe I'm wrong) that I have to set the TextColor and TextSize properties while populating the field and that I cannot do this afterwards.
So:
- How can I set the style of the text, put some text in the field and change the style again?
- how can I put in a horizontal line that separates the messages?
thank you for your thoughts!
John.
More information about the use-livecode
mailing list