Page 1 of 1

Changing Text Color of Line in a Field

Posted: Thu Jan 29, 2009 4:05 am
by novarcproducts
Hi,
is it possible to script a line of text in a field to a different color than the rest of the field's text color? For instance if I wanted line 4 of the field to be Green colored text while leaving the rest of the text lines Blue or something else? I'm guessing not, but thought i'd ask.
Thank you,
Ron

Posted: Thu Jan 29, 2009 6:25 am
by Janschenkel
You can set the foregroundColor property of a chunk in a field.

Code: Select all

set the foregroundColor of line 9 of field "foobar" to "red"
HTH,

Jan Schenkel.

Posted: Thu Jan 29, 2009 7:06 am
by novarcproducts
That's what I needed!
Thank you!