GUIKit`
GUIKit`

WidgetReference

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

WidgetReference[id]

looks up an existing widget instance using identifier id and return the underlying object.

更多信息和选项

  • To use WidgetReference, you first need to load GUIKit using Needs["GUIKit`"].
  • WidgetReference is used to find an existing widget instance and return the underlying object; it never creates a new instance. It is most useful if you want to pass the object from a widget to another function.
  • Other interface definition functions can assign names or identifiers to widgets to make them available for lookup.

范例

基本范例  (1)

WidgetReference allows you to use a name to access the underlying object:

With the underlying object you can call methods that are not exposed as properties:

It is also possible to call a method of a named widget using InvokeMethod:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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