Hi

In Qooxdoo, the progressbar should be an indicator, as mentioned by the
package.
But in my application i tend to use it as a simple field.

At the moment i would like to add a colored border to a progressbar.
I want to use a yellow border the same way as the red border indicate the
fact that a field is invalid.

But i can't get it working. When i run it in the debugger, i can see that
the appearance is never called.

here is my appearance:
"progressbar-readOnly":{
      include:"progressbar",
      styles:function(states, superStyles){
        return {
          decorator:
states.readOnly?"border-readOnly":superStyles.decorator,
          padding: states.readOnly?[1,2]:superStyles.padding
        }

      }
    }
Here is my border-readOnly
"border-readOnly":{
      decorator: qx.ui.decoration.Uniform,
      style :
      {
        width : 2,
        color:"readOnly"
      }
    }
And my application of the appearance

field.setAppearance("progressbar-readOnly");

field.addListener("changeReadOnly",function(){
  if(field.isReadOnly()){
    field.addState("readOnly");
  }else{
    field.removeState("readOnly");
  }
},this);

I did same thing for textfields and it worked as expected.

So i'm wondering what i did wrong in this.
Could you help me?

-- 
Benjamin Dreux
Analyste-Programmeur
Chaire de logiciel libre-Finance Social et solidaire
UQAM
Montréal
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to