Page 1 of 1
tabbed container
Posted: 29 Apr 2012 12:45
by wul
How do you reference a tabbed container
i.e. perform an action if its been opened
Re: tabbed container
Posted: 29 Apr 2012 19:54
by Phil999
I think it is container.tab.object, but I also remember that it didn't work occasionally.
EDIT: no, it's container.object.
Re: tabbed container
Posted: 02 May 2012 16:44
by marco88
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!
Re: tabbed container
Posted: 02 May 2012 17:55
by bxsj
Attached is a very simple example.
Hope that helps,
B.
Re: tabbed container
Posted: 03 May 2012 00:31
by Phil999
marco88 wrote:
I need that too...but its not working, can you please give us a quick example?
I made one but didn't save it . . . but I'm sure bxsj made a good example.
Re: tabbed container
Posted: 03 May 2012 01:45
by pngaudioguy
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.
Re: tabbed container
Posted: 03 May 2012 08:35
by marco88
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"
Re: tabbed container
Posted: 03 May 2012 16:53
by bxsj
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.
Re: tabbed container
Posted: 03 May 2012 23:18
by pngaudioguy
An external switch with tabbar turned off. Duh. Then I can script whatever I want into the switch action. Thanks!
Re: tabbed container
Posted: 04 May 2012 17:25
by marco88
Nice idea!
Thanks so much!
Cheers