Jim Hunter schrieb:
> Wouldn't modifying the appearance change the color of all labels? What 
> if you wanted 3 different labels to be 3 different colors? The setColor 
> method should work the same on all widgets.

It's not that we didn't think the same, but it's just not implemented to 
make it possible this way currently. We will try to fix this in future 
releases.

> 
> Instead of using a qx.ui.basic.Label , I use an qx.ui.basic.Atom in it's 
> place and get the results I expect with the color property. It just 
> seems to work better then a Label.

The appearance handle the enable/disable state. Maybe you wanna take a 
look yourself. It removes the color if enabled. If the user sets it 
previously it will be removed by the state appearance. If you however 
set the color on a atom it will be inherited to the label object. It's 
just a feature of style sheets.

Cheers,

Sebastian


> 
> Jim
> 
> 
> 
> 
> On 9/5/06, * Sebastian Werner* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     The color property works definitely but is overwritten by the state
>     appearance which has a higher priority. The only way to change this is
>     to modify the appearance.
> 
>     Cheers,
> 
>     Sebastian
> 
> 
>     dperez schrieb:
>      > Hi,
>      >
>      > In order to set the text color of a qx.ui.basic.Label, this
>     doesn't work:
>      >    myLabel.setColor('#FF0')
>      > instead this must be done:
>      >    myLabel.setStyleProperty('color', '#FF0')
>      >
>      > I wonder what's the use of the 'color' property.
>      >
>      > Regards,
>      > David
> 
> 
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     qooxdoo-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to