Radio Button & On / Off
-
Hey folks
I Need Help To Achieve This:
I Have 12 Buttons, And Each One Work As Load Ir Into The Convolution.
And Also All 12 Buttons are Radio Grouped And Need to Make Them On / Off Able AswellAny Help is much appreciated
Thanks
-
Here is an Example By @d-healey Which Show Hides The Panels,
But How use this to Load / Unload The Ir Samples?//Grab control references const var aDifferentPanel = Content.getComponent("aDifferentPanel"); const var NUM_TABS = 3; const var panels = []; const var buttons = []; for (i = 0; i < NUM_TABS; i++) { panels[i] = Content.getComponent("Panel"+(i+1)); buttons[i] = Content.getComponent("Button"+(i+1)); buttons[i].setControlCallback(changeTab); } //Tab button callback function inline function changeTab(component, value) { //Get index of clicked button local idx = buttons.indexOf(component); //Toggle buttons/panels for (i = 0; i < panels.length; i++) { panels[i].showControl(i == idx && value); buttons[i].setValue(i == idx && value); } //Show aDifferentPanel when all buttons are off aDifferentPanel.showControl(!value); }
HiseSnippet 1160.3ocsW0uSabDDeOvWK9ZbUQpO.aiphLhTyYav.MMpNXfHTKfUMAEonHz56V6aEm205t0.VHTeU5iXeCZm816KarIDmvwefmO9M6ua1Ymct1ABGZXnH.YT7rwCoHimY1YLW50xiv3ni1GYTx7ZlzauQRofGh1a7PRXH0EYXr7aUtXTr.J54e+88H9DtCMSEBctf4P+S1.lLSa6l+Ay2+PhK8L1fbduYyibD7VBewHfNKaZiFRbtjzmdBQ41RlHiu4.WlTDzQRjzPjQg8Dti63Itlq8+bVHqqOUITE0ABjV8gBeWEiUZQs7X9tsSdsCQPTZmkDVVmD9QyiYtrT8YIieHx.NCQ97gwROD8plmd1Od5YjidEzzaUyNNArgxLKJt8clGwkzfdDXKHOsz9hVBUvrk.7fKqLfbI8v.PHEQ4F11uDuks8ZupjUIqM13sAjtXX+PFH7wAzdz.Jr2FVxBzEJwWQBvj8Y8hzKaS3Te7qwIwuOU1RLXnfCBke9T98b0RjEkSd2wWb1a1qC.u9DFFpbNDT+gONg9t5RwDCkr5IBvkYfr8qvL7ukFQPZ80Wqj0skrvviNdef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