From Porcupine wiki

Developers: getParentByType method

The getParentByType searches the widget hierarchy up and returns the first widget found of the requested type.

Syntax

Syntax
widget.getParentByType(wtype);
Parameterswtype : Required. The name of the constructor function of the widget you are searching for.
ReturnsObject Widget or null.

Example

var win = widget.getParentByType(Window);

This example demonstrates how to get the window in which a widget is contained.

Retrieved from http://wiki.innoscript.org/pmwiki.php/Developers/QuiXgetParentByType
Page last modified on October 01, 2007, at 03:05 PM