Conditionally include box elements in a New Window();I'm creating a custom column select GUI using New Window(), and the list of columns that need to be selected depend on the option selected in a previous window. How do I conditionally set which Box elements exist in the window? (in the figure, only orange exists if single was selected, only green if double).

I've tried something with Match() (commented out in the script) but no luck.
Clear Globals();
Names Default To Here(1);
// Config.
window_Radio = New Window( "Wafermap viewer config.",
<<MODAL></MODAL>
Sidebar, I can't get the panel box with the radio buttons to stretch to fill the window, how can I do that without manually matching the window size?
Automation and ScriptingRe: Conditionally include box elements in a New Window();If Box() is one quite easy option to use
Names Default To Here(1);
New Window("Example",
H List Box(
englishBox = If Box(1, Text Box("Good day")),
frenchBox = If Box(0, Text Box("Bon Jour"))
)
);
Wait(5);
englishBox << Set(0);
frenchBox << Set(1);
Re: Conditionally include box elements in a New Window();For the panel box stretching I think you could for example add "blank" Spacer box as the first display box
Names Default To Here(1);
window_Radio = New Window("Wafermap viewer config.",
<<TYPE></TYPE>
Re: Conditionally include box elements in a New Window();An alternative to IfBox is to use the Visibility property that each display box has:
Names Default To Here(1);
New Window("Example",
H List Box(
englishBox = Text Box("Good day"),
frenchBox = Text Box("Bon Jour", <<VISIBILITY></VISIBILITY>