I was just working in the Main Workspace so there was no need to set a width.
I have two versions, version 1.1.1, which I keep for my old project (there are .js commands) that does not work on the Other. And the last of github that I compile.
On both it does not work, I have no idea why. When I click on the button, no page closes or opens ... Nothing happens.
In the last example, I do not see the green scriptpanel. Yet, nothing to do with the buttons .... And that's on both versions.
I can have misery!
Good! It still does not work after several hours of work ....
Here is the code:
const var page1 = Content.addPanel("page1", 18, 290);
// [JSON page1]
// [/JSON page1]
const var page2 = Content.addPanel("page2", 103, 0);
// [JSON page2]
// [/JSON page2]
const var button1 = Content.addButton("button1", 0, 210);
// [JSON button1]
// [/JSON button1]
const var button2 = Content.addButton("button2", 0, 310);
// [JSON button2]
// [/JSON button2]
If anyone sees an error, please help me! I based myself on the HiseSnippet you sent me!
Well I can see you're using JSON and
control.set()you only need to use one. Also you've only posted the contents of your on init callback. What's not working exactly?
Everything is now Ok! It remains for me to focus on my plugin! Thank you all.
One last thing. When I recall my presets, it is not page 1 which comes back (bg1) .... Why?
Is there a way to say that page one is master?
You need to exclude the buttons from being saved / restored in a preset. Just set the „saveInPreset“ property to false.
I think it works. At least, each time I change the preset the mastre remains in place.
It's normal when I recompile, I have to press on a tabs for it to come back ...? In any case, I think it's ok.
in my example shown above all working with 8 panels.
the problem seems that each time i open the project/or the compiled VST all the Panels are visible.
i must click on the Tab1 to have only one.
problem found/solved by myself.