Tabbed interface question...
-
When working with tabs and panels for a multi-page interface, is there a way to tell HISE to make a specific panel active when it initializes? Every time I hit compile or save it goes straight to Panel2 which is the effects page.
I have 2 panels in this project and they are both set to radio group 1.
//Tabs and panels const var NUM_BUTTONS = 2; const var buttons = []; const var panels = []; for (i = 0; i < NUM_BUTTONS; i++) { buttons[i] = Content.getComponent("Button" + (i+1)); panels[i] = Content.getComponent("Panel" + (i+1)); buttons[i].setControlCallback(onButtonControl); } inline function onButtonControl(component, value) { local idx = buttons.indexOf(component); for (i = 0; i < panels.length; i++) { panels[i].showControl(idx == i); } }
-
@SteveRiggs If you want panel 1 then disable the saveInPreset state for all buttons except the one that displays panel 1
-
@d-healey Ah! Easy as that! Works perfectly. Thanks dude