ImageEn, unit iexRichEdit |
|
TIERichEdit.ReplaceDialog
Declaration
function ReplaceDialog(const SearchStr: string = ''; const ReplaceStr: string = ''): TReplaceDialog;
Description
Display the "Replace Text" dialog box, which prompts the user for both a search string and a replace string.
If the user presses the Find Next button, a search for the entered search string is performed. If the search string is found the rich edit control selects the found string.
If the search string is not found an
OnTextNotFound event is fired. If the user closes the dialog an
OnCloseFindDialog is fired.
SearchStr specifies the default text of the Search edit box when the dialog opens.
ReplaceStr specifies the default text of the Replace edit box when the dialog opens.
Returns a reference to the created Replace Text dialog.
Note: Ensure you set
HideSelection to False so the selection is find result is visible
IERichEdit1.HideSelection := False;
IERichEdit1.ReplaceDialog();
See Also
◼OnTextNotFound◼OnCloseFindDialog