ControlActive

ControlActive[act,norm]

evaluates to act if a control that affects act is actively being used, and to norm otherwise.

Details

Examples

open allclose all

Basic Examples  (1)

Change the display while controls are being used:

Scope  (2)

The arguments of ControlActive can be any expression:

Use ControlActive to switch between a low-resolution and a high-resolution version:

Applications  (2)

Only emit a sound when the manipulator is not actively used:

Use a lower sampling when actively manipulating:

Properties & Relations  (2)

By using the second argument of Dynamic, you can get an effect similar to ControlActive:

Plot functions effectively use ControlActive for the PerformanceGoal setting:

Wolfram Research (2007), ControlActive, Wolfram Language function, https://reference.wolfram.com/language/ref/ControlActive.html.

Text

Wolfram Research (2007), ControlActive, Wolfram Language function, https://reference.wolfram.com/language/ref/ControlActive.html.

CMS

Wolfram Language. 2007. "ControlActive." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ControlActive.html.

APA

Wolfram Language. (2007). ControlActive. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ControlActive.html

BibTeX

@misc{reference.wolfram_2024_controlactive, author="Wolfram Research", title="{ControlActive}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ControlActive.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_controlactive, organization={Wolfram Research}, title={ControlActive}, year={2007}, url={https://reference.wolfram.com/language/ref/ControlActive.html}, note=[Accessed: 22-November-2024 ]}