TSRVDrawScrollBarEvent Type

<< Click to display table of contents >>

TSRVDrawScrollBarEvent Type

A type of the following events of TSRVScrollBar:

OnDrawBorder

OnDrawDecButton

OnDrawThumbTab

Unit SRVSBar.

type

  TSRVDrawScrollBarEvent = procedure(Sender: TSRVScrollBar;

    Canvas: TCanvas; ARect, PaintRect: TRect;

    State: TSRVDrawStatesvar DoDefault : Boolean) of object;

Parameters

Canvas – a canvas where to draw.

ARect – a rectangle defining the position of the object to draw.

APaintRect – a rectangle that needs to be redrawn. You can use this parameter to optimize drawing.

State – a set describing the current object state.

Set DoDefault to False to prevent the default drawing of this object.