The last thing left to finish off “Find” functionality is to make it work, not only from the Everything Report, but also from the GEDCOM listings and the log file. Those are on a separate form and I had previously built its menu items but not hooked it up.
I could repeat all the Find-related code from the Everything Report and use it for the GEDCOM listings and log file, but that’s about 100 lines of fairly complicated code. The last thing I want to do is to have to maintain two slightly different copies of it. Also I do want to share the Find History, so that made it apparent that I should use the same code for both. Now I had to create a function that determines what the current RichViewEdit is, so that the Find can work on that. After handling a few other unexpected matters, Find functionality is now done and I can increment my progress.
Going through some of my vast array of Delphi notes, I found the article I was looking for on how to properly hook into a Standard Windows dialog and change controls. That will allow me to add the history list I want to the Find Dialog itself. But that can wait until later.
Also, Sergey said that my code to fix the changing the direction of the search was correct, and he’ll make those mods in one of the next updates.