JVCL Help:TJvCustomRichEdit.ReplaceDialog

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 Replace Text dialog box.


Pascal

 functionReplaceDialog(constSearchStr: string; constReplaceStr: string): TReplaceDialog;


Parameters

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


Return Value

Returns a reference to the created Replace Text dialog.


Description

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


See Also

TJvCustomRichEdit.FindDialog


About

Notes

If HideSelection is set to true (as is the default), you won't see the highlighted string, because the Replace Text dialog will have the focus. You might want to set HideSelection To false before calling ReplaceDialog, 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