General
tabbed container
Started by wul on .
Sign in or create an account to join the conversation.
How do you reference a tabbed container
i.e. perform an action if its been opened
i.e. perform an action if its been opened
I think it is container.tab.object, but I also remember that it didn't work occasionally.
EDIT: no, it's container.object.
EDIT: no, it's container.object.
I need that too...but its not working, can you please give us a quick example?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.
Thanks!
I made one but didn't save it . . . but I'm sure bxsj made a good example.marco88 wrote: I need that too...but its not working, can you please give us a quick example?
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.
Thanks for the example!bxsj wrote:Attached is a very simple example.
Hope that helps,
B.
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
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
An external switch with tabbar turned off. Duh. Then I can script whatever I want into the switch action. Thanks!
Nice idea!
Thanks so much!
Cheers
Thanks so much!
Cheers