I am using Borland C++ Builder 5.
I wish to use a TRichEdit component, and be able to programmatically add text to it, and be able to have different fonts/colors within the same line of text.
I am able to change the font/color just fine, but only know how to add full lines of text ... memo->Lines->Add(string)
The Add method forces a CR/LF and thus I am unable to change the font/color within the middle of a line.
For example, if I want to add "This string (this in red) is mostly black." to the RichEdit component, with ONLY the "(this in red)" in red, how would I do so ?
Thanks