Page 1 of 1

Need to highlight all text that matches string

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

Posted: Thu Sep 01, 2005 2:05 pm
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.