GUIKit`
GUIKit`

InvokeMethod

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

InvokeMethod[name,{}|content]

calls a widget method on the wrapping contexted widget.

InvokeMethod[{target,name},content]

calls a widget method on the specified target widget.

更多信息和选项

  • To use InvokeMethod, you first need to load GUIKit using Needs["GUIKit`"].
  • InvokeMethod can be used to make a method call on a widget, with arguments to the call specified by content.
  • If no target argument exists, then the target of the method call is the wrapping widget instance.

范例

基本范例  (1)

Run a simple widget definition:

Invoke a method that returns the x coordinate:

Specify arguments to a method call that changes the size of the frame:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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