InvokeMethod
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
Examples
Basic Examples (1)Summary of the most common use cases

https://wolfram.com/xid/07a826wovo5y-d55ac
Run a simple widget definition:

https://wolfram.com/xid/07a826wovo5y-k5c

Invoke a method that returns the x coordinate:

https://wolfram.com/xid/07a826wovo5y-ux7


https://wolfram.com/xid/07a826wovo5y-ul8

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

https://wolfram.com/xid/07a826wovo5y-oj0

https://wolfram.com/xid/07a826wovo5y-pvu

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.
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.
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
Wolfram Language. (2007). InvokeMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html
BibTeX
@misc{reference.wolfram_2025_invokemethod, author="Wolfram Research", title="{InvokeMethod}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_invokemethod, organization={Wolfram Research}, title={InvokeMethod}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/InvokeMethod.html}, note=[Accessed: 06-April-2025
]}