View previous topic :: View next topic |
Author |
Message |
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Mon Mar 09, 2009 9:30 am Post subject: changing font color partially on a string |
|
|
Greetings and salutations.
I apologize if this question has been asked previously, or if the answer is found in the documentation, but I searched and could not find any hits. I may have even asked it before.
Is there a way for me to change the font in the middle of a label string or any .text able interfaces? I have a label that is informational and sometimes, I would like to partially change the color of a string to provoke warning or attention. The changing of the color may be anywhere in the string. Say I have this string,
Warning: file c:\blah\blah.txt is missing <jic> tags!
I would like Warning to be red and <jic> also to be red, or any color. But I prefer not to have more than one label. I know I can other labels and play it like that, but that will slow down the processing.
Is this possible?
thanks,
jose |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Mar 10, 2009 3:12 pm Post subject: Re: changing font color partially on a string |
|
|
You can use a RichTextBox; there are examples provided in the download. |
|
Back to top |
|
|
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Wed Mar 11, 2009 8:49 am Post subject: |
|
|
Thanks. |
|
Back to top |
|
|
|