Draw text as selected throw TRVReportHelper

General TRichView support forum. Please post your questions here
Post Reply
vit
Posts: 115
Joined: Tue Feb 03, 2009 3:11 pm

Draw text as selected throw TRVReportHelper

Post by vit »

Hi!
I using TRVReportHelper for drawing RTF text on Canvas. I want to represent selection a part of text by highlight. So how I can do it?
May be I can get somehow rectangles of all selected lines with offsets?

Thank you for any help!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TRVReportHelper does not support drawing selection.
You need either modifying the document before to change background colors, or use TRVStyle's custom drawing events (such as OnDrawStyleText)
Post Reply