MouseAnnotation

MouseAnnotation[]

给出当前鼠标位置的表达式的相关注解.

更多信息

  • 如果当前鼠标位置的表达式没有任何注解的话,MouseAnnotation[] 返回 Null.
  • 如果没有当前注解时,MouseAnnotation[def] 返回 def.
  • 鼠标点击时,MouseAnnotation[] 生成相关表达式的注解.
  • Annotation[expr,note,"Mouse"] 中,注解是的表达式 note.
  • Dynamic[MouseAnnotation[]] 给出当前持续更新的注解.

范例

打开所有单元关闭所有单元

基本范例  (2)

如果鼠标指向图形时,MouseAnnotation 将返回相关的注解:

当鼠标指向图形时显示注解:

在绘制图形中的应用:

应用  (1)

MouseAnnotation 来更新每个图形相关的状态:

属性和关系  (3)

MouseAnnotation 显示存储在其它表达式中的注解:

Tooltip 以弹出框的形式显示注解信息:

Mouseover 通过改变显示形式来显示注解信息:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_mouseannotation, organization={Wolfram Research}, title={MouseAnnotation}, year={2007}, url={https://reference.wolfram.com/language/ref/MouseAnnotation.html}, note=[Accessed: 22-November-2024 ]}