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
Changing Text Color of Line in a Field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 13
- Joined: Fri Oct 05, 2007 12:45 am
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
You can set the foregroundColor property of a chunk in a field.
HTH,
Jan Schenkel.
Code: Select all
set the foregroundColor of line 9 of field "foobar" to "red"
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com