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;
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.
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.