Manipulator

Manipulator[x]
represents a manipulator with setting x in the range 0 to 1.

Manipulator[Dynamic[x]]
takes the setting to be the dynamically updated current value of x, with the value of x being reset if the manipulator is moved.

Manipulator[x,{xmin,xmax}]
represents a manipulator with range xmin to xmax.

Manipulator[x,{xmin,xmax,dx}]
represents a manipulator that jumps in steps dx.

Details and OptionsDetails and Options

  • Manipulator[] displays in a notebook as a horizontal slider and a collection of additional controls that can be manipulated interactively.
  • Manipulator[Dynamic[x]] will reset the value of x when the manipulator setting is changed; Manipulator[x] will not. »
  • Manipulate by default generates Manipulator objects for variables that are specified to have ranges of possible values.
  • The following options can be given:
  • AppearanceAutomaticthe overall appearance of the manipulator
    AppearanceElementsAutomaticelements to include in the displayed manipulator
    BaselinePositionAutomaticalignment relative to surrounding text
    ContinuousActionTruewhether to update continuously when the manipulator controls are changed
    EnabledAutomaticwhether the manipulator is enabled, or grayed out
    ImageMargins0margins around the image of the displayed manipulator
    ImageSizeAutomaticthe overall image size of the displayed manipulator
  • Possible settings for Appearance include Tiny, Small, Medium, and Large. Other possible settings include "Open" and "Closed", or combinations such as {"Open",Small}.
  • Appearance->"Labeled" displays the current value of the manipulator as an editable label.
  • The following elements are included in a default manipulator: "InputField", "StepLeftButton", "PlayPauseButton", "StepRightButton", "FasterSlowerButtons", "DirectionButton", "InlineInputField". These elements can be specified in any order in a list given as the setting for AppearanceElements.
  • Manipulator[] is equivalent to Manipulator[0].

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Default and nondefault initial states:

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

Dynamically change the value of x:

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

Specify a range:

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

Specify a step size and range:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)