$ControlActiveSetting
是一种符号,如果在某个控件激活或者处于其他预览状态时,其值为 True.
更多信息
- ControlActive[act,norm] 实际上等价于 If[$ControlActiveSetting,act,norm].
- Block 可用于 $ControlActiveSetting 的本地化设置.
范例
基本范例 (2)
检测 Manipulate 中的控件何时使用:
Manipulate[{$ControlActiveSetting, x, c}, {x, 0, 1}, {c, Red}]大部分绘图函数用 $PerformanceGoal 来控制可视化质量:
{Block[{$ControlActiveSetting = True}, $PerformanceGoal], Block[{$ControlActiveSetting = False}, $PerformanceGoal]}Manipulate[Plot3D[Sin[(x - a)(y - a)], {x, 0, 3}, {y, 0, 3}, PerformanceGoal -> If[$ControlActiveSetting, "Speed", "Quality"]], {a, 1, 4}]文本
Wolfram Research (2007),$ControlActiveSetting,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$ControlActiveSetting.html.
CMS
Wolfram 语言. 2007. "$ControlActiveSetting." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$ControlActiveSetting.html.
APA
Wolfram 语言. (2007). $ControlActiveSetting. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$ControlActiveSetting.html 年
BibTeX
@misc{reference.wolfram_2026_$controlactivesetting, author="Wolfram Research", title="{$ControlActiveSetting}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/$ControlActiveSetting.html}", note=[Accessed: 10-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_$controlactivesetting, organization={Wolfram Research}, title={$ControlActiveSetting}, year={2007}, url={https://reference.wolfram.com/language/ref/$ControlActiveSetting.html}, note=[Accessed: 10-September-2026]}