General TRichView support forum. Please post your questions here
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.
- Site Admin
- Posts: 14752
- Joined: Sat Aug 27, 2005 10:28 am
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.