MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: How to find which variable caused the trigger in Manipulate[]


"This looks to me like a bug, but one that is very simple to work around. 
Use
Rule instead of RuleDelayed for the Refresh.  I.e.,

Manipulate[
 Row[{Dynamic[Refresh[r = process["x "]; "", TrackedSymbols -> {x}]],
   Dynamic[Refresh[r = process["y "]; "", TrackedSymbols -> {y}]],
   Dynamic[Refresh[Text[r], TrackedSymbols -> {x, y}]]}], {x, 0,
  1}, {y, 0, 1}, {r, "", "", ControlType -> None},
 Initialization :> (process[s_String] :=
    Module[{}, Text[StringJoin[s, DateString[]]]])]

After a bit of experimentation, my advice is to completely avoid RuleDelayed
with the TrackedSymbols option.

Sincerely,

John Fultz"



Ok John. fyi the documenation (version 7) for TrackedSymbols, shows :> in 
the examples and description and not ->

I am assuming that when this bug is fixed in a future release one can still 
use :> as the documentation says.

Thanks again for all your help.

--Nasser




  • Prev by Date: Re: LogLogPlot and AxesOrigin at {0,0}
  • Next by Date: Why init.m is not being loaded from Autload folder? [Mathematica 7]
  • Previous by thread: Re: Re: How to find which variable caused the trigger in Manipulate[]
  • Next by thread: Re: Re: How to find which variable caused the trigger in Manipulate[]