Bug introduced in 9.0 or earlier and fixed in 11.0.0

CheckboxBar doesn't work with TrackedSymbols and a custom callback function.

Here's an example that doesn't work

x = {}
CheckboxBar[Dynamic[x, Print, TrackedSymbols :> {x}], {1, 2, 3}]

whereas this works

CheckboxBar[Dynamic[x, Print], {1, 2, 3}]

It took me a few hours to find this, as I usually use auxiliary functions that set TrackedSymbols systematically, as this is really necessary when the amount of dynamic user interface elements displayed at the same time gets big.

The question is why it doesn't work with TrackedSymbols although it's probably a bug.

  • $\begingroup$ definitely looks like a bug $\endgroup$ – Mike Honeychurch Feb 14 '16 at 1:08
  • $\begingroup$ I agree. it not only looks a bug -- it walks and talks like a bug. Report it to WRI. $\endgroup$ – m_goldberg Feb 14 '16 at 1:53
  • $\begingroup$ Maybe a duplicate: 65039, related: 78580 $\endgroup$ – Kuba Feb 14 '16 at 8:13
  • $\begingroup$ TogglerBar has a problem too. The symptoms are not exactly the same. TogglerBar[Dynamic[x, Print, TrackedSymbols :> {x}], {1, 2, 3}] gives 3 buttons but when you push them, it print nothing. $\endgroup$ – andre314 Feb 17 '16 at 21:05
  • $\begingroup$ Have yo sent a bug report? $\endgroup$ – Kuba Jul 22 '16 at 9:55

Your Answer

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

Browse other questions tagged or ask your own question.