New answers tagged

1

I think second argument to Dynamic of InputField should help you. With it n is updated to the changed input and at the same time points are reinitialized. Help on input field says you can't use ContinuousAction with general expression, this is why Number type is specified. DynamicModule[{n = 2}, DynamicModule[{make, points}, make[n_Integer] := RandomReal[...


0

I got a reply from Wolfram Technical Support. It turns out the slow response was caused by not localizing the variables ax and by inside the Module statements. The MouseDown was triggering their update, which in turn caused the whole graphic to be recreated. Thanks to John Fultz. I am told the only way to track down unexpected dependencies is by selectively ...


1

From my comment: Try Dynamic[valveType[p, scale, orientation, myCol], TrackedSymbols :> {myCol}] This worked for me and seemed to work for the OP, so I'll post it as an answer. One might normally expect an explanation, but the OP's code is rather too complicated (or at least long, at first glance) to really track down the problem quickly. I will ...



Top 50 recent answers are included