$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 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_2026_$controlactivesetting, author="Wolfram Research", title="{$ControlActiveSetting}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/$ControlActiveSetting.html}", note=[Accessed: 08-August-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: 08-August-2026]}