Hi,

has anybody yet realized that since the recent (March 2010)
changes in WAbstractToggleButton::updateDomElements()
WCheckbox and WRadioButton elements can no longer be
disabled or set to readonly?

Only their label element will show up as disabled, because
"PropertyDisabled" and "PropertyReadOnly" are being cleared
on the input element itself after copying them to the
exterior element, which usually doesn't react on "disabled":

     /*
      * Copy all properties to the exterior element, as they relate to 
style,
      * etc... We ignore here attributes, see WWebWidget: there seems not to
      * be attributes that sensibly need to be moved.
      */
     if (&element != &input) {
             element.setProperties(input.properties());
             input.clearProperties();
     }

If I remove the line containing the call to "clearProperties()"
it again works for me as expected.

Best regards,
     Thomas

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to