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 » Thu Sep 01, 2005 11:47 am

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: 14752
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Thu Sep 01, 2005 2:05 pm

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