behaviour of tgui::tab on adding a new tab.
« on: 14 October 2015, 16:11:43 »
Hi

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?

thanks

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: behaviour of tgui::tab on adding a new tab.
« Reply #1 on: 14 October 2015, 16:14:59 »
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.

Re: behaviour of tgui::tab on adding a new tab.
« Reply #2 on: 14 October 2015, 16:53:40 »
how silly i am...

thanks