Control
Details
- Control supports the following variable and domain specifications:
-
{u,umin,umax} manipulator (slider, animator, etc.) {u,umin,umax,du} discrete manipulator with step du {u,{xmin,ymin},{xmax,ymax}} 2D slider {u,{u1,u2,…}} setter bar for few elements; popup menu for more {u,{u1->lbl1,u2->lbl2,…}} setter bar or popup menu with labels for elements {u,{True,False}} checkbox {u,color} color slider {u} blank input field {u,FormObject[…]} form with specified fields {u,func} an arbitrary control from a function {{u,uinit},…} use initial value uinit {{u,uinit,ulbl},…} include label ulbl {{u,…},…,opts} use the specified control options - The variable u in Control[{u,…}] is automatically treated as a Dynamic object.
- Options specified by Control[{u,dom,opts}] are typically interpreted as they are in Manipulate.
- The option setting ControlType->type will attempt to use a control of the specified type.
- opts may include option settings specific to the selected control.
Examples
open all close allBasic Examples (1)
Scope (5)
Control chooses the same controls as Manipulate for the same control specification:
Control[{x, 0, 1}]Use ControlType to choose a different control:
Control[{xy, 0, 1, ControlType -> Slider2D}]Control[{int, 0, 1, ControlType -> IntervalSlider}]Specify an initial value for the control variable:
Control[{{x, 0.5}, 0, 1}]Customize the control's label:
Control[{{x, 0.5, "variable"}, 0, 1}]Specify options specific to the selected control, such as Manipulator:
Control[{x, 0, 1, ControlType -> Manipulator, Appearance -> {"Open", Small}, AnimationDirection -> Backward, ImageMargins -> 30}]Control[{int, 0, 1, ControlType -> IntervalSlider, Method -> "Push", MinIntervalSize -> 0.1, Appearance -> "Labeled"}]Create an arbitrary control from a function:
Control[{{x, 0.5}, Panel[Slider[#], Dynamic[#]]&}]See Also
Related Guides
Related Workflows
- Build a Manipulate
Text
Wolfram Research (2008), Control, Wolfram Language function, https://reference.wolfram.com/language/ref/Control.html (updated 2019).
CMS
Wolfram Language. 2008. "Control." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Control.html.
APA
Wolfram Language. (2008). Control. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Control.html
BibTeX
@misc{reference.wolfram_2026_control, author="Wolfram Research", title="{Control}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Control.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_control, organization={Wolfram Research}, title={Control}, year={2019}, url={https://reference.wolfram.com/language/ref/Control.html}, note=[Accessed: 13-June-2026]}