this is a little example to change single word colors
Bye
Angel
Printable View
this is a little example to change single word colors
Bye
Angel
Wow. I didn't expect it to be so simple. Cool example!
That is a good example but it doesn't accomplish what I need. I want the user to be able to type in text and when a certain word pops up it is put in red. I really need to be able to do this with the rich edit object.
OK, i have update my example.
I hope is what you need.
Bye
Angel
Thank you very much! I really appreciate the help. Angel is now going to be included in my credits page (unless you want me to use a different name)
I'm happy... Angel is OK :)
Bye
Angel
small bug in the example:
Type in the word, erase it, and then type, all text will be red. Should be easy to fix though, just so you know =)
I have fixed the small bug.
Bye
Angel
If you type "Here's an Apple." it won't recognize it :)
Or.. "My name is "Apple"".. or "Have you seen my new Apple?"
Are you putting punctuation after apple? It won't recognize it if you do.
However that is not a problem for what I am doing. Hitting enter is a problem. But I suspect it can easily be fixed on my own.
Indeed I do. That's what I wanted to point out.
simply add an "OR" condition "upon pressing a key".
For the punctation the problem is another.
This example check the exact entry in search string when space key is pressed.
Now make some change to example then repost here... stay tuned.
Bye
Angel
Here is an example of what Angel just described. The only problem is if the word you are changing the color of is the first on the new line after hitting enter it will not be colored. This example also changes the color of every item in a list. You can change the list to whatever you want.
this version fix all old bug (I hope).
I wait for your opinion.
Bye
Angel
This is just about perfect! It does everything right except now I can't figure out how to reincorporate that list... Oh well, I'll give it more thought tomorrow *yawn*.