I want to display a clickable graph using ClickPane (on tab one) while behind it are several tabls with lists of items and three options (clickboxes?) next to each (so that the user can change the default allocation of one of three values to each item). Is the best framework in which to do this a Manipulate command? What are the corresponding commands for the tabs and the boxes?

  • 1
    $\begingroup$ Is this related? 5576 $\endgroup$ – jjc385 Mar 31 '17 at 1:04

Pursuant to jjc385's comment, the ideal answer is

DynamicModule[{tab = 2}, TabView[{ "Variables" -> TabView[{"A" -> TableForm@{{"a=", SetterBar[Dynamic[a], Range@3]}, {"b=", SetterBar[Dynamic[b], {0 -> "zero", 1, 2}]}, {"c=", SetterBar[Dynamic[c], {0, .5, 1}]}} , "B" -> "Nothing here."}] , "Graph" -> Dynamic@Plot[Sin[a x + b] + c, {x, 0, 2 Pi}] }, Dynamic[tab]] ]

which is a little different than the prior code which produced

enter image description here.

Now, the user can change several variables and the display only switches to the graph when the user tabs to it. Thanks!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.