Need to highlight all text that matches string

General TRichView support forum. Please post your questions here
Post Reply
jc

Need to highlight all text that matches string

Post by jc »

I need to search a trichviewedit for a given string, highlighting all matches in the trichviewedit. I know of the searchtext method, but I do not know how to accomplish highlighting the text.

Thanks.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The seach selects the found string.
Call ApplyTextStyle or ApplyStyleConversion to change the selection font.
A simple example can be found in Demos\Delphi\MultiDemo\, the last subdemo.
Post Reply