There are three controls in the following code: the first one is a "stand-alone" one and the other two are based on the list angle
. When one of the "angles" becomes active, all of them do the same. How to prevent it?
DynamicModule[{angle = Array[0 &, 2]},
Panel@Dynamic@
Column[{Row@{
Slider[Dynamic[x], {0, 2 Pi}], Dynamic[{x, ControlActive["a", "Inactive"]}]},
Grid[
MapIndexed[
With[{i = #2[[1]]}, {Slider[Dynamic[angle[[i]]], {0, 2 Pi}],
Dynamic[{angle[[i]], ControlActive["Active", "Inactive"]}]}] &, angle]]}]]
Dynamic
is a wild beast :( $\endgroup$ – Dr. belisarius Feb 28 '16 at 10:00