Hi HJ. Here are the results. You can see they differ depending on platform, but both have strange behaviors to me. Neither platform really provides the behavior I want:
FF 1.5.0.1 ========== 1. After opening XUL file, button says "disabled" in black, unbolded text. 2. 1st button click: button label changes to "enabled" in black, unbolded text, then "foxyproxy.setEnabled(true);" is alerted. 3. 2nd button click: button label changes to "disabled" in black, unbolded text, then "foxyproxy.setEnabled(false);" is alerted. Click OK on the alert box and "disabled" changes to bolded red. 4. 3rd button click: button label changes to "enabled" in red, bold text, then "foxyproxy.setEnabled(true);" is alerted. Click OK on the alert box and "enabled" changes to unbolded black. Mozilla 1.7.12 ============== 1. After opening XUL file, button says "disabled" in black, unbolded text. 2. 1st button click: "foxyproxy.setEnabled(false);" is alerted. Button label does not change. 3. 2nd button click: button label changes to "enabled" in red, bold text, then "foxyproxy.setEnabled(true);" is alerted. 4. 3rd button click: button label changes to "disabled" in black, unbolded text, then "foxyproxy.setEnabled(false); is alerted. Regards, Eric --- HJ <[EMAIL PROTECTED]> wrote: > HJ wrote: > > Eric H. Jung wrote: > >> Hi, > >> > >> I have a button checkbox defined like this: > > > > <snip /> > > > >> Two strange things are happening: > >> 1. The CSS has effect only the opposite of what I defined; i.e., when > >> checked=false and > >> label="disabled". > >> 2. Although the button checkbox is initially set to false, the text is > >> not red/bold. > > > > The attached XUL test case seems to work correctly, right? > > ...but make sure to save it locally ;) > > /HJ > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
