How to implement Find and Replace dialogs
Search can be case sensitive or not, up or down. "Whole word" option is also supported.
Use TRichViewEdit.SearchText to select the old string.
Then use InsertText to replace it with the new one. This method removes the selected part of document before performing insertion. If you search in backward direction, set CaretBefore parameter to True.
Find dialog is implemented in the main editor demo:
Both Find and Replace dialogs are implemented in the demo:
▪Demos\*\Assorted\Search and Replace\
Alternatively, you can use RichViewActions.