Page 1 of 1

about format and formattail?

Posted: Sat Nov 22, 2008 7:42 am
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!

Posted: Sat Nov 22, 2008 11:06 am
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.

Posted: Sun Nov 23, 2008 8:39 am
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~