Programmatically Delete
Posted: Mon Nov 30, 2009 7:38 pm
Hello,
I would like to perform a Delete in a TRichViewEdit programatically. If there is a selection then DeleteSelection works perfectly. However, if there is no current selection, I would like to be able to trigger the same code that would happen in the user simply pressed delete, i.e. delete the next character to the right of the cursor. Of course, there may be tables etc to the right of the cursor.
Do you have sample code that can do this?
Thanks!
I would like to perform a Delete in a TRichViewEdit programatically. If there is a selection then DeleteSelection works perfectly. However, if there is no current selection, I would like to be able to trigger the same code that would happen in the user simply pressed delete, i.e. delete the next character to the right of the cursor. Of course, there may be tables etc to the right of the cursor.
Do you have sample code that can do this?
Thanks!