Hi

I was assuming that each control had an "ID" property similar to 
properties like height and width etc.  Now I see I was mistaken.

Is there a method to retrieve a child control similar to javascript's 
get document.getElementById() method?  I was thinking of something like 
mywindow.getElementById("txtName1").

Thanks
Simon


On 16/08/2011 4:51 PM, Seldaiendil D. Flourite wrote:
> 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 <[email protected]
> <mailto:[email protected]>>
>
>     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
>     [email protected]
>     <mailto:[email protected]>
>     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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to