trichview.com

trichview.support




Re: deleting lines in RichView


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/13/2002 21:39:08


After replacing the selected paragraph with an empty string (resulting empty

paragraph), call the following code:

  SendMessage(RichViewEdit1.Handle, WM_KEYDOWN, VK_DELETE,0);

It simulates pressing DELETE key, thus deletes this empty paragraph.



> Hi, I am new with RichView and therefore my question may be stupid - sorry

> for that in advance.

> In a document which includes text-items und tables I would like to delete

> with a Delphi-Programm all text lines where the text starts with "@". Note

> - I do not want to set only the item-text to "" but make all the visible

> text lines starting with "@" disappear.

> How can I do it ?

> With SearchText / InsetText I can only change the item-text, the empty

lines

> remains in document

> With DeleteItems I need to know the RVData and the ItemNo (not so easy

with

> tables), besides after deleting items that way the style of the line that

> follows the deleted one becomes the one of the deleted line.

> Please help me, if it works I will order a licence next week.

> Thank you, Markus

>

>

>

> Markus

>





Powered by ABC Amber Outlook Express Converter