Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find and highlight text in other app using regular expresion
#37
Thanks. I tried but if you use -1 for background color, it goes to entirely black. So I had better luck using -1 for text color to reset to black and then use ColorFromRGB(255 255 255) for background color to get it to back to white.

One thing about update to EditControlSelectReplace, you have to supply the start and stop point, whereas in RichEditHighlight, it is figured out. So I tried to merge the code so I could have a text replace based on supplying pre-existing string (either straight or regex).

I am getting close with fusing these two or even calling RichEditHighlight out of EditControlSelectReplace, after the swap has occurred but having problem with carriage returns throwing off the start and stop points.

Thanks for any help!,
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)