ButtonData

ButtonData

是底层函数 ButtonBox 的一个选项,当按钮处于激活状态且被点击时,它能够为按钮的 ButtonFunction 指定第二个参数.

更多信息

  • 缺省情况下 ButtonData->Automatic.
  • ButtonData 提供了一种将附加数据与按钮联系在一起,且并不影响按钮显示的简便方法.

范例

基本范例  (1)

创建一个按钮,该按钮能够打印出它自身的 ButtonData 值:

Wolfram Research (1996),ButtonData,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ButtonData.html.

文本

Wolfram Research (1996),ButtonData,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ButtonData.html.

CMS

Wolfram 语言. 1996. "ButtonData." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ButtonData.html.

APA

Wolfram 语言. (1996). ButtonData. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ButtonData.html 年

BibTeX

@misc{reference.wolfram_2024_buttondata, author="Wolfram Research", title="{ButtonData}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ButtonData.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_buttondata, organization={Wolfram Research}, title={ButtonData}, year={1996}, url={https://reference.wolfram.com/language/ref/ButtonData.html}, note=[Accessed: 21-November-2024 ]}