I thought I had a pretty good handle on Dynamic
, but some recent examples have made me suspect that I may have some misconceptions, and I am not finding good explanations of the places where I think I have such misconceptions. I would be grateful if anyone could either answer these questions or point me to resources that do so.
1) What is the difference between the following two formulations?
Dynamic[stuff,TrackedSymbols->{list}]
Dynamic[Refresh[stuff,TrackedSymbols->{list}]]
2) If you have nested Dynamic
where you want to explicitly specify TrackedSymbols
, do the inner tracked symbols need to be included in the outer list of tracked symbols? (I ask because when I didn't do that, the updating of the inner Dynamic
seemed to get disabled.)
3) If the answer to 2 is "yes," then how do you specify symbols that you want to trigger an update of the inner Dynamic
, but explicitly do not want to trigger the update of the outer Dynamic
?
4) In the following structure, do symbols that are evaluated as part of fstart, f, and fend get automatically added to the Dynamic TrackedSymbols
list?
Dynamic[stuff,{fstart,f,fend}]
5) Suppose I have a grid that is formatted to be part of a user interface of the following form. I seem to be able to make the entire thing Dynamic
, but unable to make PART of it Dynamic
. Is there any way around this?
Dynamic@Grid[Join[{{header stuff}},
{set of lines}&/@Range[something],
{another set of lines}&/@Range[something else],
{{footer stuff}}]] (*works*)
Grid[Join[{{header stuff}},
Dynamic[{set of lines}&/@Range[something]],
Dynamic[{another set of lines}&/@Range[something else]],
{{footer stuff}}]] (*doesn't work*)