Hi Florian,

You're doing nothing wrong here ... it's seems to a bug in qooxdoo.
-> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2061

A possible workaround is to define the "button-abort" appearance just like the 
"button-ok" one. If you use the "icon" property is should work.

cheers,
  Alex

On Friday 06 March 2009 Florian Giesen wrote:
> Hi Alex,
>
> Here is my appearance Theme. Look at the 2 commentlines, to see what
> is working and what not.
>
> /* ************************************************************************
> #asset(imcwindows/*)
> ************************************************************************ */
> qx.Theme.define("imcwindows.theme.Appearance",
> {
>   extend : qx.theme.modern.Appearance,
>
>   appearances :
>   {
>     "tinyinput-window" : "window",
>     "tinyinput-window/textfield" : "textfield",
>     "tinyinput-window/button" :
>     {
>       alias : "button",
>       include : "button",
>
>       style : function(states)
>       {
>         return {
>           padding: 1,
>           allowStretchX: false,
>           allowStretchY: false,
>           alignX: "center",
>           alignY: "middle"
>         }
>       }
>     },
>     "tinyinput-window/button-abort" : "tinyinput-window/button",
>     "tinyinput-window/button-ok" : "tinyinput-window/button",
>
>     // this works fine
>     "tinyinput-window/button-ok" :
>     {
>       alias : "tinyinput-window/button",
>       include : "tinyinput-window/button",
>
>       style : function(states)
>       {
>         return {
>           icon : "imcwindows/check_16.png"
>         }
>       }
>     },
>
>     // and this not. The image error_16.png is not loaded
>     "myimage" :
>     {
>       include : "image",
>       alias : "image",
>
>       style : function(states)
>       {
>         return {
>           source : "imcwindows/error_16.png"
>         }
>       }
>     },
>
>     "tinyinput-window/button-abort/icon" : "myimage"
>   }
> });

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to