Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

getParentByType method

Developers.QuiXgetParentByType History

Show minor edits - Show changes to markup

October 01, 2007, at 03:05 PM by Thomas Bellos -
Changed lines 3-4 from:

The getParentByType gets border width of the widget.

to:

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

October 01, 2007, at 03:03 PM by Thomas Bellos -
Changed lines 11-12 from:
Parameterswtype : Required. String indicating the element type to access
ReturnsInteger Widget border width.
to:
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.

October 01, 2007, at 02:49 PM by Thomas Bellos -
Changed line 12 from:
ReturnsInteger Widget border width.
to:
ReturnsInteger Widget border width.
October 01, 2007, at 02:49 PM by Thomas Bellos -
Added lines 1-12:

(:title getParentByType method:)

The getParentByType gets border width of the widget.

Syntax

Syntax
widget.getParentByType(wtype);
Parameterswtype : Required. String indicating the element type to access
ReturnsInteger Widget border width.
Page last modified on October 01, 2007, at 03:05 PM