TSRVDrawScrollBarAreaEvent Type

<< Click to display table of contents >>

TSRVDrawScrollBarAreaEvent Type

A type of the following events of TSRVScrollBar:

•OnDrawArea

Unit SRVSBar.

type

  TSRVDrawScrollBarAreaEvent = procedure(Sender: TSRVScrollBar;

    Canvas: TCanvas; ARect, PaintRect: TRect; isFirstArea: Boolean;

    State: TSRVDrawStates; var 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.

isFirstArea – True if this event is called for the background area between the "dec button" and the thumb tab.

State – a set describing the current object state.

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