TSRVPageScroll.OnDrawPageNumber

<< Click to display table of contents >>

TSRVPageScroll.OnDrawPageNumber

Allows a custom drawing of page numbers.

type

    TPSDrawPageNumberEvent = procedure (Sender: TObject; Canvas: TCanvas;

      const R: TRect; PageNo : Integer; isSelect : Boolean) of object;

 

property OnDrawPageNumber: TPSDrawPageNumberEvent;

By default, page numbers are displayed if PageNoVisible=True.

They are displayed in the location specified in AlignText, drawing using BackgroundTextColor and PageNoFont properties.

If this event is assigned, the default drawing is not performed.

Canvas – canvas where to draw.

R – location of the page number, calculated according to AlignText and PageNoFont.

PagNo – page number to draw.

isSelect specifies whether this page is highlighted.