trichview.com

trichview.support




Re: How to load plaintext into trichview?


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/28/2004 15:29:41


Use TRichView.LoadText.

Starting from v1.8.10 there is also method TRichView.LoadTextFromStream.


If you need to add several lines of text from a string, use AddTextNL:


rv.Clear;

rv.AddTextNL(s, 0, 0, 0);

rv.Format;


or


rv.Clear;

for i := 0 to StringList.Count-1 do

  rv.AddNL(StringList[i], 0, 0);

rv.Format;



>

> Hi,

>

> how can i load plaintext into trichview? Like classic Richview.Lines.Text!

>

> thanks

> F. Mayer





Powered by ABC Amber Outlook Express Converter