FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

changing font color partially on a string

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Mon Mar 09, 2009 9:30 am    Post subject: changing font color partially on a string Reply with quote

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. Sad

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Mar 10, 2009 3:12 pm    Post subject: Re: changing font color partially on a string Reply with quote

You can use a RichTextBox; there are examples provided in the download.
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Wed Mar 11, 2009 8:49 am    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group