I am using this code inside Manipulate
:
Switch[cases,
"custom", Control[{{names, True}, {True, False}}],
"a", Control[{{slide, 0}, 0, 1}],
"b", Control[{{setter, "das"}, {"das", "der", "die"}}]],
{{cases, "custom"}, {"custom", "a", "b"}}
The variable cases
is supposed to control which other control type is visible. However i get the following error message:
Manipulate::vsform: Manipulate argument Switch[cases,
[...]
does not have the correct form for a variable specification. >>
[...] is a placeholder which in mathematica displays the controls i specified above (Odd, right?). I cannot post screenshots yet unfortunately. Does anybody have an idea why this isn't working or how to better implement a manipulate control in which I can dynamically alter the number and types of the other controls?
Switch
, at least I never seen it before. But if you post full code, it will help try it out than spend time to try to recreate it. $\endgroup$Manipulate
expression and support code it depends on. Please edit your question by adding that code. $\endgroup$