Flexibility in customising RichView control (backgrounds)

General TRichView support forum. Please post your questions here
Post Reply
chris.clark
Posts: 7
Joined: Sat Jun 20, 2015 7:03 am

Flexibility in customising RichView control (backgrounds)

Post by chris.clark »

Can you advise whether there is flexibility to hook into the painting routines (either by callback methods or subclassing) to customise the drawing on the rich view control.

Particularly what I am wanting to do is draw custom coloured backgrounds behind each paragraph block (think rounded rectangles) - and drawing labels in a gutter for each paragraph. These would be just display elements and not part of the actual content of the document.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can do it in TRVStyle.OnDrawParaBack
See the example in Demos\DelphiUnicode\Assorted\Custom Draw\CustomDraw
Post Reply