void DemoContentComponent::resized() { TabbedComponent::resized(); if (tabBarIndent > 0) getTabbedButtonBar().setBounds (getTabbedButtonBar().getBounds().withTrimmedLeft (tabBarIndent)); }
TabBarButton *CtrlrLuaMethodEditorTabs::createTabButton (const String &tabName, int tabIndex) { TabBarButton *btn = new TabBarButton (tabName, getTabbedButtonBar()); CtrlrMethodEditorTabCloseButton *close = new CtrlrMethodEditorTabCloseButton(owner, tabIndex); close->setSize (20,20); btn->setExtraComponent (close, TabBarButton::afterText); return (btn); }