ButtonFunction
Usage
• ButtonFunction 是 ButtonBox 的一个选项,指明当按钮是活动的并敲击时执行的函数。
Notes
• ButtonFunction的缺省设置引起按钮将你的笔记本所选的内容进行粘贴。
• ButtonFunction 仅用于有设置 Active->True时, 要么对个别按钮,要么对包含他的单元。 • 使用 ButtonFunction->f , f 的第一个参数由ButtonSource的设置指定及第二个参数由ButtonData的设置指定。 • 标准 Mathematica 优先规则需要 ButtonFunction->(body &)中的括号。 • ButtonFunction的设置经常从由ButtonStyle选项的按钮风格中继承。 • 使用缺省设置 ButtonEvaluator -> None ,从按钮函数中构造的表达式送到前端求值。 • 参见 Mathematica 全书: 节 2.10.6.
|