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.

Details and Options

  • 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.

Examples

Basic Examples  (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 Language function, https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html.

Text

Wolfram Research (2007), InvokeMethod, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html.

CMS

Wolfram Language. 2007. "InvokeMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html.

APA

Wolfram Language. (2007). InvokeMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html

BibTeX

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

BibLaTeX

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