tabbed container

Discuss Lemur and share techniques.
Post Reply
wul
Regular
Posts: 181
Joined: 10 Apr 2012 13:25

tabbed container

Post by wul »

How do you reference a tabbed container
i.e. perform an action if its been opened
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: tabbed container

Post 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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
marco88
Newbie
Posts: 7
Joined: 14 Dec 2011 19:53

Re: tabbed container

Post 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!
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: tabbed container

Post by bxsj »

Attached is a very simple example.
Hope that helps,
B.
Attachments
test1.jzml
(3.58 KiB) Downloaded 147 times
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: tabbed container

Post 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. :)
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
pngaudioguy
Newbie
Posts: 25
Joined: 13 Apr 2012 23:48

Re: tabbed container

Post 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.
marco88
Newbie
Posts: 7
Joined: 14 Dec 2011 19:53

Re: tabbed container

Post 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"
bxsj
Regular
Posts: 116
Joined: 24 Dec 2011 06:47
Location: Vienna

Re: tabbed container

Post 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.
Attachments
test1.jzml
(6.49 KiB) Downloaded 137 times
Win7 64, Ipad Lemur, Cubase6 and a bunch of Roland Synths and Samplers
pngaudioguy
Newbie
Posts: 25
Joined: 13 Apr 2012 23:48

Re: tabbed container

Post by pngaudioguy »

An external switch with tabbar turned off. Duh. Then I can script whatever I want into the switch action. Thanks!
marco88
Newbie
Posts: 7
Joined: 14 Dec 2011 19:53

Re: tabbed container

Post by marco88 »

Nice idea! :lol:
Thanks so much!

Cheers
Post Reply