Page 1 of 1

Flexibility in customising RichView control (backgrounds)

Posted: Sat Jun 20, 2015 7:13 am
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.

Posted: Sat Jun 20, 2015 1:34 pm
by Sergey Tkachenko
You can do it in TRVStyle.OnDrawParaBack
See the example in Demos\DelphiUnicode\Assorted\Custom Draw\CustomDraw