Hi skar,
Thank s for ur suggestion. I tested that way and here is
the code.
var doc = this.getRoot();
var t1 = new qx.ui.form.TextField();
t1.addListener('appear',function(){alert('creating
t1');},this,false);
var t2 = new qx.ui.form.TextField();
t2.addListener('appear',function(){alert('creating
t2');},this,false);
var t3 = new qx.ui.form.TextField();
t3.addListener('appear',function(){alert('creating
t3');},this,false);
doc.add(t1,{left:10,top:30})
alert(1);
doc.add(t2,{left:100,top:30})
alert('2');
doc.add(t3,{left:200,top:30})
alert('3');
And the result was like this. t1 appeared first and its event handler was
executed. but after that the event handlers for t2 nd t3 was executed after
alert(3) was executed. their event handlers were not executed immediately
they were added. I hope you understand. Any solution for this?
Pls Reply
Regards
Joe
skar wrote:
>
> 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
>
>
--
View this message in context:
http://n2.nabble.com/Dipslay-of-child-widget-immediately-after-being-added-to-a-container-tp4116648p4118042.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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