Hi,

I am trying to achieve the following: I have a button with an associated
icon (actually the button is a TabButton but I dont think this matters), and
I want the icon to change when the mouse hovers in the button. I tried the
following:

        "ParentAppearanceId/button":
        {
            style: function(states)
            {
                if (states.hovered)
                return {"source": "common/mystuff.png"};
            }
        },

or even:

        "ParentAppearanceId/button/icon":
        {
            style: function(states)
            {
                if (states.hovered)
                return {"source": "common/mystuff.png"};
            }
        },

But this does not work in both cases. The documentation explicitely says
however that icon or source are two properties that can be set using themes!
I checked that indeed the code is run, but the returned object does not
cause the button's image to change...

Help!

Also, I was wondering if there was available a list of all possible flags
for the 'states' object (per widget). It would be "very" useful. Currently
developers have to guess, or what?!

Thanks

Jean-Noel
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to