smartjo wrote:
> Hi,
>
> Pls take a look at this code snippet
>
>
> var doc = this.getRoot();
> doc.add(new qx.ui.form.TextField(),{left:10,top:10+(i*10)})
>
> doc.add(new qx.ui.form.TextField(),{left:10,top:30})
> alert('1');
> doc.add(new qx.ui.form.TextField(),{left:10,top:60})
> alert('2');
> doc.add(new qx.ui.form.TextField(),{left:10,top:90})
> alert('3');
>
> when this snippet is run the textfield widgets are created and added to root
> widget, but are display on screen all together after alert(3) is executed.
> Instead of 3 if there are many widgets to be added , all are displayed
> together at the end only.
>
> Is there any way to display the widget immediately after it are added to the
> container?
>
You can add a listener for the appear event like this:
var t1 = new qx.ui.form.TextField();
t1.addListener("appear", function(e){
alert("textfield 1 appearing ...");
}, this);
doc.add(,{left:10,top:90})
Hope that helps.
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel