Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'DynamicModule behavior question' topicStudent Support Forum > General > "DynamicModule behavior question"

Next Comment >Help | Reply To Topic
Author Comment/Response
Kevin
12/28/07 7:42pm

For the following block of code, why does moving the y slider reset the dynamic output. Because of the "TrackedSymbols :> {x}", I would expect only the x slider to update the output?

DynamicModule[{x, y},
Column[{
Slider[Dynamic[x]],
Slider[Dynamic[y]],
Dynamic[{x, y}, TrackedSymbols :> {x}]
}]
]

However, when I change the DynamicModule to a Module or remove it completely (like the following block of code), the y slider doesn't affect the dynamic output as I would expect. Can someone please explain this to me?

Column[{
Slider[Dynamic[x]],
Slider[Dynamic[y]],
Dynamic[{x, y}, TrackedSymbols :> {x}]
}]

URL: ,

Subject (listing for 'DynamicModule behavior question')
Author Date Posted
DynamicModule behavior question Kevin 12/28/07 7:42pm
Re: DynamicModule behavior question Kevin 01/08/08 10:54pm
Next Comment >Help | Reply To Topic