Which callback is executed when a tab is clicked?


I’m working with a TabbedComponent, and I would like to run a callback any time one specific tab is clicked (in order to update its content). Which callback should I use?

I’ve tried focusGained, defined inside of one of the components added to the TabbedComponent, but it does not seems to work. I’m curious, when does focusGained really execute?


visibilityChanged() might be a better callback for this purpose.

But about already selected tab through code, visibilityChanged() is called before resized() and isShowing() returns false