<< Click to display table of contents >>
TrvActionFind is the action for "Edit | Find" command.
TrvActionFind = class(TrvAction)
This action displays a TFindDialog for searching a substring in the TCustomRichViewEdit component. If at the moment of execution a single line of text is selected, this text is copied to the find dialog. If at the moment of execution a replace dialog is shown, it is closed.
The search starts from the caret position to the end or to the beginning of the document. If the text is found, it is selected. If not found, the action's behavior depends on GetControlPanel.SearchScope property:
•rvssFromCursor, the search stops;
•rvssAskUser, the action asks user whether to continue from the beginning/end;
•rvssGlobal, the search continues from the beginning/end.
If nothing found, a message is displayed.
In Delphi 2009+, or if TNT Controls are used, the action searches for Unicode string. Otherwise, it searches for ANSI string.