NSScroller with transparent Background

I’d like to hide the background rect of a ScrollBar on macOS. Looks like NSScroller has drawKnob() Method.

Does anyone have a declare for this? Should be possible: How to draw a transparent NSScroller

ScrollBar

MBS and Ohanaware AppKit has this.
I don’t think you can achieve this with the Xojo scrollbar (which is odd though)

1 Like

The transparent background of a NSSlider is not a property.

Makes me think why Xojo does not use NSScroller instead of NSSlider. Backwards compatibility?

Why do you assume that Scrollbar is derived from NSSlider? In my opinion it is an NSScroller.

My bad… I meant NSScroller, not NSSlider.