hiliting a word

Scott Rossi scott at tactilemedia.com
Thu Mar 3 02:22:42 EST 2005


Recently, Nicolas Cueto  wrote:

> my question then
> is how do I reset the textColor of the selected word and/or the entire
> field? I tried "set the textColor" of the entire field but no luck.. Of
> course, I could use the clickChunk info to manually recolor each word, but
> something tells me that there must be a better way.

Here's one way:

  set textColor of char 1 to (number of chars of fld 1) of fld 1 to empty

You can replace "empty" with a default color if necessary.  There are
probably other methods as well.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list