trichview.support
Re: Using Richview as a chat |
Author |
Message |
Sergey Tkachenko |
Posted: 06/27/2003 21:56:02 Add*** methods with FirstParaNo parameter = -1 appends text to the previous paragraph. But FormatTail requires that the next item after the last (previous) FormatTail (or Format) is added from the new paragraph. So call richview1.AddTextNL('John says:', stylenumber, para_stylenumber, para_stylenumber); richview1.AddTextNL('Hello !!', stylenumber, -1, para_stylenumber); richview1.FormatTail; I assume that message text cannot contain line break (CR LF) characters, so you can use AddNL and Add: richview1.AddNL('John says:', stylenumber, para_stylenumber); richview1.Add('Hello !!', stylenumber); richview1.FormatTail; para_stylenumber is an index in the collection RVStyle.ParaStyles, >= 0. |
Powered by ABC Amber Outlook Express Converter