Page 1 of 1

insert a part of bold text

Posted: Thu May 21, 2009 8:48 am
by nadirakyildiz
I prepare a text then insert to the TSRichviewEdit. But Text contains some special words like <b>mail</b> to <b>ME</b>. How can I make bold these words in TSRichviewEdit.
example;
mail to ME.

I have to uses RichViewEdit.InsertText('<b>mail</b> to <b>ME</b>.', False);

Code: Select all

  for i := 0 to SL_1.Count - 1 do
  begin
    SRE_Duzenleme.RichViewEdit.SelectAll;
    while SRE_Duzenleme.RichViewEdit.SearchText(SL_1.Strings[i], [rvseoMatchCase]) do
    begin
      SRE_Duzenleme.RichViewEdit.InsertText(SL_2.Strings[i], False);
    end;
    SRE_Duzenleme.RichViewEdit.Format;
  end;

Thanks,
Nadir.

Posted: Thu May 21, 2009 3:43 pm
by Sergey Tkachenko
You can use RVHtmlImport ( www.trichview.com/resources/ ) to insert HTML from string.