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.
Jason Priebe
CBC New Media
QxWidget.js.patch
Description: QxWidget.js.patch
