trichview.com

trichview.support




Re: Lagging using addtext


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/07/2004 9:45:47


Hi,


As I understand, you need a kind of chat window.

You do not need to use ApplyStyleConversion and editor at all.

It's enough to use a read-only component - TRichView.


Text and paragraph properties are completely defined by StyleNo and ParaNo

parameters of Add*** methods.

If you need just append new lines, call

AddNL(text, StyleNo, ParaNo); // slightly faster than AddTextNL

If ParaNo is -1, text will be added to the end of previous line.

(call it several times until you add all the required lines)

When call FormatTail, and the control's window will be updated.


This is the fastest method.


Limitation: FormatTail updates the document properly only if after the last

call of FormatTail/Format, AddNL was called to add text from the new line

(ParaNo<>-1)





Powered by ABC Amber Outlook Express Converter