Custom Drawing in TRichView

<< Click to display table of contents >>

Custom Drawing in TRichView

There are the following events for custom drawing.


OnPaint drawing over RichView document.


OnPagePrepaint drawing on page under the document;

OnPagePostpaint drawing on page over the document;

OnPrintComponent printing components.


OnDrawCheckpoint – drawing checkpoint;

OnDrawPageBreak drawing page break;

OnDrawParaBack drawing background of paragraph;

OnDrawTextBack drawing background of text;

OnApplyStyle applying text style to Canvas;

OnApplyStyleColor applying the text style color to Canvas;

OnDrawStyleText drawing text of the given style;

OnStyleHoverSensitive returns "should component be repainted when user moves the mouse to a hypertext of the given style?"


OnDrawBorder drawing table and cell borders.