DynamicSetting

DynamicSetting[e]
represents an object which displays as e, but is interpreted as the dynamically updated current value of Setting[e] if supplied as Mathematica input.

DynamicSetting[f, e]
displays as e, but is interpreted as if supplied as input.

DetailsDetails

  • DynamicSetting[e] returns an object which remains unchanged until it is explicitly supplied as Mathematica input, and evaluated using Shift+Enter, Evaluate in Place, etc.
  • In the object returned by DynamicSetting, all controls such as sliders are operable.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Displays as a slider, but gives the slider's setting when used as input:

In[1]:=
Click for copyable input
Out[1]=

Copy the output to use as active input:

In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input

Copy and use Evaluate in Place (Ctrl+Shift+Enter) to display as an actual color swatch:

In[2]:=
Click for copyable input
Out[2]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »