Jonny,
seems you got something wrong here. BackgroundImage is not a property of
the widget. It must be defined in the decorator. Your way do not work in
0.8. Two separate decorators is the easiest way.
Sebastian
Jonathan Rass schrieb:
> Hi Jim,
>
>
> if the two decorators only differ in the background image, you could
> also define your own appearance and use only one decorator. The
> background image can depend on a state:
>
>
> "myAppearance" :
> {
> style : function(states)
> {
> return {
> decorator : "myDecorator",
> backgroundImage : states.foo ? "foo.png" : "bar.png",
> };
> }
> }
>
>
> Cheers,
> Jonathan
>
>
>
> Jim Hunter wrote:
>> I got around this by creating a copy of my basic decorator and set the
>> backgorund image in it. Now I can switch between the two by simply
>> changing the decorator from one to the other. Quite simple!
>>
>> Jim
>>
>>
>> On Tue, Oct 21, 2008 at 3:11 PM, Jim Hunter <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> I am looking for some support with respect to the new decorators. I
>> have a status area that I used to simply change the background image
>> to indicate various statuses. Now, in order to change the
>> background, I need to change the decorator. I tried creating a new
>> Background decorator and setting the backgroundImage setting and
>> then set my label to use this decorator. And it worked. But what I
>> didn't notice at first was that it removed the decorator that I had
>> on the label to begin with (borders). Is there a way to add a
>> decorator to the ones that are currently in use, then remove it
>> without effecting other decorators? If not, how would you handle
>> this routine situation?
>>
>> Thanks,
>> Jim
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel