Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Interactive Manipulation > Options & Styling for Interactive Manipulation >

Deinitialization

Deinitialization
is an option for Dynamic, DynamicModule, Manipulate and related constructs, which specifies an expression to be evaluated when the construct can no longer be displayed or used.
  • The typical usage is Deinitialization:>expr.
  • Deinitialization is typically done when the cell containing a construct is deleted, or when the notebook containing it is closed.
  • Deinitialization will never be performed unless initialization has previously been performed.
  • Deinitialization may be delayed if, for example, a construct appears in an invisible location such as the clipboard.
Choose a color and create the colored disk when the window is closed:
Temporarily change the background of a notebook:
Track and display how long a window was viewed:
Choose a color and create the colored disk when the window is closed:
 
Temporarily change the background of a notebook:
 
Track and display how long a window was viewed:
Track the mouse position while the window is open and display a plot when it is closed:
Temporarily change the notebook font size setting:
Display the current time and create a graphical representation when the window is closed:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team