$ControlActiveSetting

$ControlActiveSetting

is a symbol whose value is True if it is evaluated while a control is active, or in certain other previewing situations.

Details

  • ControlActive[act,norm] is effectively equivalent to If[$ControlActiveSetting,act,norm].
  • Block can be used to localize the setting for $ControlActiveSetting.

Examples

Basic Examples  (2)

Detect when controls in Manipulate are being used:

Most plot functions use $PerformanceGoal to control visualization quality:

Hence the default behavior is effectively the following:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_$controlactivesetting, author="Wolfram Research", title="{$ControlActiveSetting}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/$ControlActiveSetting.html}", note=[Accessed: 24-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$controlactivesetting, organization={Wolfram Research}, title={$ControlActiveSetting}, year={2007}, url={https://reference.wolfram.com/language/ref/$ControlActiveSetting.html}, note=[Accessed: 24-April-2024 ]}