trichview.com

trichview.support




Re: Limit the number of lines in RVEdit


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/12/2004 19:17:31


You can process OnChange and call Undo, if resulting document exceed the

limits.

I recommend to calculate a number of paragraphs instead of lines:


Count := 0;

for i := to rve.ItemCount-1 do

  if rve.IsParaStart(i) then

    inc(Count);


> This code limits the number of lines in a Richedit:

>    if reProposalText.Lines.Count > 20 then

>      reProposalText.Lines.Delete(20);

>

> How can I do the same using a RichViewEdit?

>

>





Powered by ABC Amber Outlook Express Converter