Priebe, Jason schrieb:
If a button "execute" event handler disables the button,
the highlight produced when you hover over the button
does not go away.  This leads to an odd display
(see attached example HTML).

The workaround is to call removeState(QxConst.STATE_OVER)
on the button.  If you modify my example to look like this:

function on_btn_disable_execute (evt)
{
    globals.btn_disable.setEnabled(false);
    globals.btn_disable.removeState(QxConst.STATE_OVER);
}

then the highlight goes away.
I'm also attaching a patch to QxWidget.js that removes the
STATE_OVER when the widget is disabled.

I've applied this to CVS and also added removeState calls for ABANDONED and PRESSED.

Thank you for your contribution.

Sebastian


Jason Priebe
CBC New Media

------------------------------------------------------------------------




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to