ImageEn, unit iexRichEdit |
|
TIERichEdit.FindDialog
Declaration
function FindDialog(const SearchStr: string = ''): TFindDialog;
Description
Display the "Find Text" dialog box, which prompts the user for a search 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 edit box when the dialog opens.
Returns a reference to the created Find Text dialog.
Note: Ensure you set
HideSelection to False so the selection is find result is visible
IERichEdit1.HideSelection := False;
IERichEdit1.FindDialog();
See Also
◼OnTextNotFound◼OnCloseFindDialog