ControlType
is an option for Manipulate and related functions that specifies what type of controls should be displayed.
Details
- Possible control types are Animator, Checkbox, ColorSetter, ColorSlider, InputField, IntervalSlider, Manipulator, PopupMenu, RadioButton or RadioButtonBar, Setter or SetterBar, Slider, Slider2D, Trigger, and VerticalSlider. None can also be used.
- ControlType->None specifies that no controls should explicitly be displayed.
- ControlType->{type1, …} specifies that the i control should be of type typei.
- A ControlType option can be specified separately for each variable in a Manipulate.
- Arbitrary controls can be set up in Manipulate by giving control specifications of the form {u,func}.
Examples
open allclose allBasic Examples (3)
Default Manipulate control:
Override with a Slider2D:
Default ControllerManipulate control:
Add a Slider linked to the same variable:
Scope (10)
By default Manipulate chooses a Manipulator to control the specified variable:
Use ControlType to specify the type of control to use, including None:
Slider and VerticalSlider:
RadioButton, Setter, Checkbox, or PopupMenu:
ColorSetter and ColorSlider:
Specify the control type for each Manipulate variable separately:
ControlType can be combined with individual variable control specifications:
In the Automatic setting, an appropriate controller is selected:
Text
Wolfram Research (2007), ControlType, Wolfram Language function, https://reference.wolfram.com/language/ref/ControlType.html.
CMS
Wolfram Language. 2007. "ControlType." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ControlType.html.
APA
Wolfram Language. (2007). ControlType. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ControlType.html