about format and formattail?

General TRichView support forum. Please post your questions here
Post Reply
newfile
Posts: 15
Joined: Fri Jan 18, 2008 8:36 am

about format and formattail?

Post by newfile »

I have a large rich text , when change a url information,if use format function ,result is right ,but it's so slowly , formattail is ok ,but formattail just change length of old url Information
eg:
i think change " http://www.aaa.com " to " http://www.bbbb.com" use:
....
EdtText.GetItem(ItemNo).StyleNo := 1;//no hyperlink
EdtText.SetItemTextW(ItemNo, StrInfor);
EdtText.Formattail;

it's result is
http://www.bbb.com and hyperlink is exists ,tks!
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

FormatTail only formats paragraphs added after the last call of Format or FormatTail. These new paragraphs must be added with Add*** methods. It is designed for chat or log windows.

If you change something in already formatted document, you must use Format.
newfile
Posts: 15
Joined: Fri Jan 18, 2008 8:36 am

Post by newfile »

Sergey Tkachenko wrote:FormatTail only formats paragraphs added after the last call of Format or FormatTail. These new paragraphs must be added with Add*** methods. It is designed for chat or log windows.

If you change something in already formatted document, you must use Format.

tks,it's ok,ha~
Post Reply