Welcome to Decent Sampler Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

I tried using the newly added <button> element to make a tabbed interface (as in Kontakt) with 2 buttons for shifting UI elements on the user interface. 

Is this in theory a possibility?

Here is my current code:

<ui width="700" height="440">
 <tab name="main">

 <!-- BUTTON - TAB 1 -->
 <button x="30" y="10"  width="120" height="40" style="text" value="0">
 <state name="TAB 1">
 <binding type="control" level="ui" controlIndex="2" parameter="x" translation="fixed_value" translationValue="50" />
 <binding type="control" level="ui" controlIndex="2" parameter="y" translation="fixed_value" translationValue="70" />

 <binding type="control" level="ui" controlIndex="3" parameter="x" translation="fixed_value" translationValue="0" />
 <binding type="control" level="ui" controlIndex="3" parameter="y" translation="fixed_value" translationValue="0" />
 </state>
 </button>

 <!-- BUTTON - TAB 2 -->
 <button x="170" y="10"  width="120" height="40" style="text" value="0">
 <state name="TAB 2">
 <binding type="control" level="ui" controlIndex="2" parameter="x" translation="fixed_value" translationValue="0" />
 <binding type="control" level="ui" controlIndex="2" parameter="y" translation="fixed_value" translationValue="0" />

 <binding type="control" level="ui" controlIndex="3" parameter="x" translation="fixed_value" translationValue="230" />
 <binding type="control" level="ui" controlIndex="3" parameter="y" translation="fixed_value" translationValue="70" />
 </state>
 </button>
 <label x="50" y="70" width="170" height="40" textSize="18" textColor="FFFFFFFF" text="label tab 2" />
 <label x="230" y="70" width="170" height="40" textSize="18" textColor="FFFFFFFF" text="label tab 3" />

 </tab>
</ui>

I tried using parameter="x" and "X", so both big and small letters for the positioning. Tested both with "position" and "controlIndex". Not working in 1.7.13 (macOS 10.13).

It would be so great if this worked, cause then we could make little tabbed interfaces here and there, even if we got a fully designed way to use tabs as a ui method or so. If we could move elements around it would be great. The potential uses are endless.

in Sample Creation by

Please log in or register to answer this question.

...