Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Control Objects >

ControlActive

ControlActive[act, norm]
evaluates to act if a control that affects act is actively being used, and to norm otherwise.
  • ControlActive can be used to switch between a faster computation to be done while controls like sliders are being moved, and a slower computation to be done once the controls are released.
  • ControlActive[act, norm] can also be used to trigger evaluation of norm when controls are released.
  • ControlActive[act, norm] is effectively equivalent to If[$ControlActiveSetting, act, norm].
New in 6
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team