piDogScrollingCanvas.PaintScroller
Scope: Public
Event PaintScroller(g as Graphics, isHorizontal as boolean, trackArea as xojo.Rect, scrollerArea as Xojo.Rect, maximum as double, value as double, hovered as Boolean, pressed as Boolean) As Boolean
Allows customized handling of scroller drawing.
Parameters:
g - is the graphics object to draw into
isHorizontal - will be true if horizontal, false otherwise
trackArea - is the area of the scroller, including the "track"
scrollerArea - is the area where the scroller would be drawn by default
max - is the maximum value of the scroller
value - is the current value based on the scroll position
hovered - whether the mouse is in the bounds of the scrollbar
pressed - whether the scroller is pressed
Return true to handle the scroller painting and prevent the default drawing.