A little proposal.
Each tab corresponds to some object. Adding a tab is made with adding some Value to TabBar internal list. Most of time this Value is String, which is drawn inside tab.
So imagine that user`s made something with one of controls associated with current tab. What do I do?
1) First of all, I pass my internal objects Vector to determine which of them corresponds to current tab
2) Do some action
I think it will be better to add tabs with a pair of (Value,Value) (like in DropList). One may hold "title" information (like String) while another will hold some reference info (like index, pointer or event One<MyTabbedClass>).
I am using TabBar for opening files. To manage them I need full path but I would like to put in tab String only the file name.
Now as far as I know this is not possible so I have to put the full path in the tab String.