Which callback is executed when a tab is clicked?


#1

Hi,

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?

Thanks.


#2

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


#3

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