How to move between tabs?

rktmedia

Client
Регистрация
14.11.2011
Сообщения
63
Благодарностей
4
Баллы
8
Hi, well... Im using tabs but I didnt find any way to move between them. Zenno can work in all them just adding the tab name on the step, but what I want is that at any time if I want to see whats happening on tab 3 Zenno switch to it.

I got the problem that after I opened lets say 3 tabs and closed the 3rd, Zenno just show the Maintab again, and I want to tell Zenno that shows me whats doing on the tab2 not tab1
how can I do that? I cant find the way.
Thanks
Damian
 

Nick

Client
Регистрация
22.07.2014
Сообщения
1 961
Благодарностей
796
Баллы
113
Good question! After looking through the help pages I couldn't find any method of Instance class to switch the tab.

instante.ActiveTab = tab doesn't work because

instance.ActiveTab and
instance.AllTabs

are read-only properties
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 756
Благодарностей
1 179
Баллы
113

Nick

Client
Регистрация
22.07.2014
Сообщения
1 961
Благодарностей
796
Баллы
113
Thanks... I actually needed an answer in terms of C#.
The correct answer is:

Код:
  foreach(Tab curTab in instance.AllTabs)
  if(curTab.Name == "tabname")
  curTab.SetActive();
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 756
Благодарностей
1 179
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)