Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

getParentByType method

Developers.QuiXgetParentByType History

Show minor edits - Show changes to output

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:
||!Parameters|| ''wtype'' : Required. String indicating the element type to access ||
||!Returns||''Integer'' Widget border width. ||
to:
||!Parameters|| ''wtype'' : Required. The name of the constructor function of the widget you are searching for. ||
||!Returns||''Object'' Widget or ''null''. ||


!! Example

%code%
[@
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:
||!Returns|| ''Integer'' Widget border width. ||
to:
||!Returns||''Integer'' 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

||cellspacing=1 cellpadding=4 border=1 bgcolor=#ededed
||!Syntax||[@
widget.getParentByType(wtype);
@]||
||!Parameters|| ''wtype'' : Required. String indicating the element type to access ||
||!Returns|| ''Integer'' Widget border width. ||
Page last modified on October 01, 2007, at 03:05 PM