Widget children

Glynn Clements glynn at gclements.plus.com
Tue Jan 26 07:01:54 PST 2010


LALLIER Cedric (EXT TEAMLOG) wrote:

> Why the resource XmNchildren and/or XmNnumChildren does not return all
> the widgets children of a similar widget, while Editres or
> XtNameToWidget indicates that the other widgets children are connected
> with the similar widget?

XtNchildren is the list of children of a composite widget. Whether or
not this includes widgets which are part of the widget's
implementation is up to the implementation of the widget class.

XtNameToWidget() only considers members of the "children" resource for
Composite widgets, and popup children for non-Composite widgets.

At some point, the Editres support in libXmu was changed to include
"associated" widgets (any resource of type XtRWidget whose parent is
the specified widget) along with the children. This is specific to
Editres, though; such widgets aren't considered children by
XtNameToWidget().

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list