Vcl.Dialogs.TReplaceDialog.OnReplace
Delphi
property OnReplace;
C++
__property OnReplace;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TReplaceDialog |
Description
Occurs when the user clicks the Replace or Replace All button.
OnReplace occurs whenever the user clicks Replace or Replace All. In addition, when the user clicks Replace, the frReplace flag is set (and the frReplaceAll flag is turned off) in Options. When the user clicks ReplaceAll, the frReplaceAll flag is set (and the frReplace flag is turned off) in Options.
Write an OnReplace event handler that searches for the text specified in FindText and replaces it with the text in ReplaceText. Use the Options flags to determine how the search is conducted.