MidiKeyboardComponent: Custom scroll button width


#1

The MidiKeyboardComponent draws the octave scroll buttons with a fixed with of 12.

Would it be possible to add a protected member function like virtual int getScrollButtonWidth() const that returns 12 by default, but can be overridden? This would really help when using different scaling factors in a GUI. Other than that, the class is already very customizable, which is nice!

I’m aware of drawUpDownButton, but that doesn’t allow you to draw buttons that are wider than 12 (because the Graphics context is set to the bounds of the UpDownButton).


#2

Yep, I’ll add that.


#3

Thanks! Much appreciate!