smartjo wrote:
> 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?
>   
If you want some code to run when a textfield is being shown, put that 
code in the "appear" listener's function, or if the code is in a 
function, call that function from the listener.

If this doesn't solve your problem, I need more info on what you want to 
achieve.

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

Reply via email to