Icon in tab of tabbedcomponent


#1

I came across Juce today and am impressed with the toolkit so far.

Is it possible to place an icon/image to the left of the text in the top tab of a tabbedcomponent?
How would I go about doing this?


#2

You should override TabBarButton and add your image there
and in TabbedComponent::createTabButton(), return your inherited class.


#3

or you could override the drawTabButton() method from your custom LookAndFeel class.


#4

[quote=“Shlomi”]You should override TabBarButton and add your image there
and in TabbedComponent::createTabButton(), return your inherited class.[/quote]
And what about click on this image only?
I want to add image to close tab. Where I can handle click event on this image?