General

tabbed container

Started by wul on .

Sign in or create an account to join the conversation.

10 posts

Phil999 wrote:I think it is container.tab.object, but I also remember that it didn't work occasionally.

EDIT: no, it's container.object.
I need that too...but its not working, can you please give us a quick example?
Thanks!
That is a good example of addressing an item within various tabs. I believe what the OP is looking for was a way to, for instance, change the On/Off text based on which tab is selected. The only scriptable tab option listed in the manual is selecttab(container,index) for displaying a tab. I was looking for a similar thing, but decided it doesn't seem to exist. Something along the lines of gettab(container), which would return "index" to indicate which tab is currently selected.
bxsj wrote:Attached is a very simple example.
Hope that helps,
B.
Thanks for the example!
I'm sure it will be useful.
But actually i was looking for something like pngaudioguy describes it "change the On/Off text based on which tab is selected"
I haven't found a way to query the current active tab in a container. But you could control that from outside the container by using the selecttab(object, index) command. And then just use setattribute(Container,'tabbar',0) to hide the tabbar in the container. That is having an external switch/pad/whatever to control which tab is displayed in the container. The user woudn't even notice that these are tabs ...
Just a wild idea :)
Cheers,
B.
PS.: Attached is simple example on how to control the tab strips via a switch. And a way to hide and un-hide the tabbar. I coudn't resist trying it.

test1.jzml