How can i make a FIFO Window?

General TRichView support forum. Please post your questions here
Post Reply
RichEnjoyer
Posts: 14
Joined: Fri Jan 20, 2006 11:05 am
Location: Germany

How can i make a FIFO Window?

Post by RichEnjoyer »

Hello everybody,

i try the TRichViewEdit component for future use in my own application.
I want make a chatwindow thats has a max line count of 100 lines.
Whenever comes a new line at the end of the TRichViewEdit than check the actual line count.

while bytlLineCount > MAX do Delete Line 0

How can i do this with the TRichViewEdit?

Thank you, Frank
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Adding paragraphs: use Add*** methods, then call FormatTail.
Deleting paragraphs: DeleteParas (without subsequent call of Format or FormatTail)
You should calculate a number of paragraphs (chat messages) yourself.

(FormatTail and DeleteParas were implemented specially for chat/log windows. They do their work as quick as possible)
RichEnjoyer
Posts: 14
Joined: Fri Jan 20, 2006 11:05 am
Location: Germany

Post by RichEnjoyer »

Ok Thank you! :D
Post Reply