On the form, there are two components and TRichView TRichViewEdit.
In Trichvieschedit entering text using the numbered squeak, for example:
- 1. words ...
2. words ...
3. words ...
...
n. words ...
This text is sent to TRichView, here's the code:
Code: Select all
ms: = TMemoryStream.Create;
try
RichViewEdit.SaveRTFToStream(ms, False);
ms.Seek (0, soFromBeginning);
table.Cells[0,0].LoadRTFFromStream(ms);
finally
ms.Free;
end;
RichView.AddItem('', table);
Further repeated paste text using a numbered list and instead to get in TRichView two different numbered lists:
- 1. words ...
2. words ...
3. words ...
...
n. words ...
---------------
1. words ...
2. words ...
3. words ...
...
n. words ...
it turns continue numbering:
- 1. words1 ...
2. words1 ...
3. words1 ...
...........
4. words ...
5. words ...
6. words ...
I know there is a method in TRichViewEdit RichViewEdit.RemoveLists (False) which resets the numbering and allows her to start from the beginning.
But RichView is no such method, as you can reset the numbering RichView?