According to FF tutorials, when image (for a toolbar button) is specified in 
.CSS file, the image gets grayed-out automatically (when 'disabled' 
attribute of toolbar button set to 'true'). Like this:

#GBLTut-MainMenu {
    list-style-image: url("chrome://gbltutorial/skin/tut_main.gif");
}

If however, images are assigned to toolbar buttons dynamically (at 
run-time), the above approach won't work. Via 'image' property of 
'toolbarbutton' object it's possible to assign image at run-time. However, 
in that case, images don't get grayed-out when toolbar buttons are disabled 
(only text portion gets grayed-out).
Is there a solution?

Thanks, Boris 


_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to