JVCL Help:TJvCustomRichEdit.FindDialog

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Displays the Find Text dialog box.


Pascal

 functionFindDialog(constSearchStr: string): TFindDialog;


Parameters

Parameters Description
const SearchStr: string Default search string that appears in the edit box when the dialog opens.


Return Value

Returns a reference to the created Find Text dialog.


Description

Call FindDialog to display the Find Text dialog box, that 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.


See Also

TJvCustomRichEdit.CanFindNext, TJvCustomRichEdit.FindText, TJvCustomRichEdit.ReplaceDialog


About

Notes

If HideSelection is set to true (as is the default), you won't see the highlighted string, because the Find Text dialog will have the focus. You might want to set HideSelection to false before calling FindDialog, and set it to its old value in an OnCloseFindDialog event handler.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page