Change the width of tabs in tabbedComponent buttonBar


#1

Hi there, I’m trying to figure out how to change the width of the tabs on a tabbedComponent with the orientation set to TabbedButtonBar::Orientation::TabsAtTop.

In this configuration it’s very straight forward to change the height of the buttons by calling:

void TabbedComponent::setTabBarDepth (const int newDepth);

but it seems quite involved to change the width of the very same buttons. Am I missing something? Is there a simple way of doing this or am I going to have to sub class some stuff? Thanks!


#2

Override LookAndFeel::getTabButtonBestWidth in your LookAndFeel subclass.


#3

success! Thanks so Much Dave