• Hi

    I'm creating a document by adding a number of RTF documents after the other, and insert a header text in between. I can make the header bold, underline but how can I change the background color?

    Code
    while ... do
    begin
             rtf.CPPosition := 0;
             rtf.CurrAttr.AddStyle([afsBold, afsUnderline]);
             rtf.InputString('Some header for every RTF');          // **** how to change the bk color of this text
             rtf.CurrAttr.DeleteStyle([afsBold, afsUnderline]);
             rtf.SelectionAsString := GetNextRTF;
    end;