Hi, Child controls are managed internally by widget class. To create child controls you must override widget method *_createChildControlImpl*, add your child controls and call the base class *_createChildControlImpl* method:
*qx.Class.define('myapp.MyWidget', { > * * extend: qx.ui.core.Widget, > * > * constructor: function() { > * * // first time it creates the statusbar and returns it > this.getChildControl('statusbar'); > * * // next times it will just return it > var statusbar = this.getChildControl('statusbar'); > * * }, > * * members: { > * * // override > _createChildControlImpl: function(id) { > var control; > * * switch (id) { > // If ID is 'statusbar' create statusbar child control > case 'statusbar': > control = new myapp.Statusbar(); > control.set({ > // some properties > }); > break; > * * // More cases > } > * * // If a control was created return the control, else call base class > method > return control || this.base(arguments, id); > } > } > });* * * More info here<http://manual.qooxdoo.org/1.5.x/pages/gui_toolkit/ui_develop.html?highlight=_createchildcontrolimpl> . --- Seldaiendil 2011/8/16 Simon White <simonwh...@dciphercomputing.com> > Hi > > I can see that there is a > > qx.ui.core.Widget.getChildControl(string id, boolean notcreate) > > method but I have not found where the ID of a widget is set. Therefore > I do not know what value to supply for the ID. Can someone enlighten me? > > Thanks, > Simon > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel