UIViewSwitchContainer

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

UIViewSwitchContainer

Post by chroma »

Hi all,

Is there a known bug with using a UIViewSwitchContainer? I cannot get any changes to persist in the editor, No matter I do.

Any templates added to the container will be forgotten once clicked away from it.

The resulting XML file seems to be correct but that is not reflected in the editor.

Been pulling my hair out over this.

chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

Re: UIViewSwitchContainer

Post by chroma »

I hate to bump my own thread, but the only way I can see around this is to create the UI without using the editor.

Any help would be amazing.

Arne Scheffler
Posts: 354
Joined: Mon Jun 20, 2016 7:53 am

Re: UIViewSwitchContainer

Post by Arne Scheffler »

Hi,
can you post the xml ?

Cheers
Arne

chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

Re: UIViewSwitchContainer

Post by chroma »

Hi Arne,

Thank you for looking at this.

I've attached the XML file. If I click away from the switchviewcontainer template and save, the resulting XML will be different.

Thanks
Oli
Last edited by chroma on Tue Nov 14, 2017 5:27 pm, edited 1 time in total.

Arne Scheffler
Posts: 354
Joined: Mon Jun 20, 2016 7:53 am

Re: UIViewSwitchContainer

Post by Arne Scheffler »

Hi Oli,
I think with the version you have, you cannot inline edit the templates in the UIViewSwitchContainer, you have to edit the template directly.
If you check out the latest sources from github, then this should work.

I hope this helps.

Cheers
Arne

chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

Re: UIViewSwitchContainer

Post by chroma »

Thanks for the swift reply, Arne.

That XML was generated with the latest VST3 SDK 3.6.8. Is the VSTGUI4 repo more recent?

Thanks
Oli

chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

Re: UIViewSwitchContainer

Post by chroma »

Also,

Is there any documentation for writing raw XML? I think I can get the gist for most of it, but not sure if there is any control/view specific stuff.

Oli

Arne Scheffler
Posts: 354
Joined: Mon Jun 20, 2016 7:53 am

Re: UIViewSwitchContainer

Post by Arne Scheffler »

chroma wrote:Thanks for the swift reply, Arne.
That XML was generated with the latest VST3 SDK 3.6.8. Is the VSTGUI4 repo more recent?
No, that version should be ok.
Have you tried to edit the templates directly, not embedded into the switch container ?
That at least should work.

Arne Scheffler
Posts: 354
Joined: Mon Jun 20, 2016 7:53 am

Re: UIViewSwitchContainer

Post by Arne Scheffler »

chroma wrote:Also,

Is there any documentation for writing raw XML? I think I can get the gist for most of it, but not sure if there is any control/view specific stuff.

Oli
Look it up in the documentation. It may not be 100% up to date tho.

chroma
Posts: 9
Joined: Mon Oct 30, 2017 4:47 pm

Re: UIViewSwitchContainer

Post by chroma »

Arne,

Thanks for the info.

I can edit the individual templates fine, however, they fail to persist (or work) when placed within the switchviewcontainer.

Oli

Post Reply