|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
ButtonSource
ButtonSource
is an option for the low-level function ButtonBox that specifies the first argument to give to the ButtonFunction for the button when the button is active and is clicked.
DetailsDetails
- The default is ButtonSource->Automatic.
- Possible settings are:
-
Automatic ButtonData if it is set, otherwise
ButtonContents the first argument of the ButtonBox ButtonData the setting for the ButtonData option Cell the whole cell in which the button appears CellContents the contents of the cell in which the button appears Notebook the whole notebook in which the button appears n the expression n levels up from the button in the notebook
ExamplesExamplesopen allclose all
Basic Examples (4)Basic Examples (4)
Create a button that prints out the value of its ButtonData:
| In[1]:= |
Create a button that prints out the button contents:
| In[1]:= |
ButtonSource->Automatic means the button function acts on ButtonData if it is set:
| In[1]:= |
When ButtonData is not set, ButtonSource->Automatic lets the button act on its contents:
| In[1]:= |
New in 3
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




