Richedit - formatting
Posted on 2002-05-02
Problem: I want to format parts of the strings while adding them to the Richedit. Currently:
procedure TForm1.Button1Click(Sender: TObject);
with RichEdit1,Richedit1.SelAttributes do begin
Text:=Text+'Blue simple ';
Text:=Text+'Green Italic ';
it works fine - once :)
When I click Button1 again, I have previous "Green Italic" formatted as blue simple; the last Green Italic appears correctly.
What I'm trying to do is to have as simple as possible way how to change text attributes within the line, preferrably before adding it to RichEdit.
Thanks in advance, this should be simple, but 123 points anyway :)