|
SOLUTIONS
|
MATHEMATICA 内置符号
ButtonSource
ButtonSource
是低层函数 ButtonBox 的一个选项,当按钮处于激活状态且被点击后,用以指定 ButtonFunction 的第一个自变量.
更多信息更多信息
- 缺省情况下,ButtonSource->Automatic.
- 可能的设置有:
-
Automatic 如果其被设定,则为 ButtonData,否则为
ButtonContents ButtonBox 的第一个参数 ButtonData ButtonData 选项的设置 Cell 按钮所在的整个单元 CellContents 按钮所在单元的内容 Notebook 按钮所在的整个笔记本 n 笔记本中从该按钮起 n 层的表达式
范例范例打开所有单元关闭所有单元
基本范例 (4)基本范例 (4)
创建一个按钮,该按钮可打印出它自身的 ButtonData 值:
| In[1]:= |
| In[1]:= |
ButtonSource->Automatic 表示,若设置了 ButtonData,则按钮函数将作用于 ButtonData:
| In[1]:= |
若 ButtonData 没被设定,ButtonSource->Automatic 使按钮作用于其内容:
| In[1]:= |
版本 3 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




