behaviour of tgui::tab on adding a new tab.

Started by billarhos, 14 October 2015, 16:11:43



I am facing an issue here with tab (not critical because can easily go around this).

When i add a new tab like this "pTab->add("Tab1")" then connect function "(TabSelected") is triggering.

So i got a question. Is it proper?



The add function takes an optional boolean as second parameter which determines whether the new tab will immediately be selected or not. If true is passed (default) then the new tab will be selected and thus a callback will be triggered to indicate that the selected tab has changed. So if you don't want this you can pass false as second parameter to the add function.