I'm a newbie in qooxdoo and I'm trying to create an automatic progress bar
to use in a "Search" function.

It's seems to stop before the "setTimeout" function so it doesn't change its
value

The code I'm using (popup is popup with a VBox layout):

var bar=new hello.automaticProgressBar();
barra.delayedLoop();
popup.add(bar);

My automaticProgressBar.js:

qx.Class.define("hello.automaticProgressBar",
{
  extend : qx.ui.indicator.ProgressBar,

    construct : function()
    {
      this.base(arguments); 
        //var i = 1;

    },
members:{
    i:1,
    delayedLoop : function()
    {
        setTimeout(function ()
        {  
            this.setValue(10*this.i);
            this.i++;                  
            if (this.i < 11)
            {
                alert(this.i);
                this.delayedLoop();         
        }                      
    }, 300)
    }
}
});

Any guess?




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Automatic-Progress-Bar-tp7584051.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to