insert a part of bold text

General TRichView support forum. Please post your questions here
Post Reply
nadirakyildiz
Posts: 12
Joined: Thu May 21, 2009 8:38 am

insert a part of bold text

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can use RVHtmlImport ( www.trichview.com/resources/ ) to insert HTML from string.
Post Reply