Scrollbar question


Is there a way to derivate a ScrollBar in order to make it “resizable”.
As you find in Samplitude e.g., there is adaptative scrollbar that change the size of the object in track, and thus allow user to define by himself the viewed zone in e.g. a viewport.


1 Like

To be a bit clearer in my question,

I’d like to invert a ScrollBar behaviour in the viewport :

  • currently, when the viewed component growth, the scrollBar limits change and scrollBarButton becomes smaller.

  • i’d like to allow user to change the ScrollBarButton in order to change the viewed component size, do u see ?

Any help will be welcome!


You’d need to write a specialised component for that, I think.

yes you must write a special component for that.

anyway i don’t know if this can be useful for you too, but i modified the ViewPort class that now accepts ViewportListeners, so you can be notified when a inner component changes or the visible area changes (so you can update external Components too like your scrollbars or mini windows), look here


cheers !

Great Kraken,
but I’ve already made my own viewport to add slider next to the 2 scrollbars , allowing zooms. :wink:
But such CHI solution is not actually great, today many sequencers allow you
resizing the scrollbar button, and you keep 2 buttons + and - , instead of a scrollbar + a slider + 2 buttons.
Moreover you can so manage the main zooming with one only object, and not 2.

(But I download it though, interesting)

Another idea ?