Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   RichTextBox and RTF (http://www.programmingforums.org/showthread.php?t=15301)

whizzkid Mar 2nd, 2008 2:15 PM

RichTextBox and RTF
 
Hi again,

I've overcome most difficulties with Unicode so far (thanks to the community and some friends), but now I have another problem.

I want to use Rich Text Format to display text. OK, it's not very difficult, but the main thing is that I want to display various formattings in one Rich Edit Box (using Visual Studio 2008). There are some functions that can code it, and some sources describing the process, but thus, I cannot understand it. Would someone be so nice to post me a very simple code as an example? Code should do:
1. take first string*, change formatting to bold and red colour
2. take second string*, change formatting to italic and green colour
3. display them both in one Rich Edit Box keeping their specific formattings

* strings are not loaded from file, but are given as an input; purpose is NOT text editor, only display is valuable to me (and saving the text from the box to a file, but that's thing to do later)

I know this is rather a thing I should have learned from documentation, but the language used there is too technical to me...

Thanks in advance,
WhizzKid


All times are GMT -5. The time now is 3:34 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC