I have a very simple menu bar that displays icons only, see
below. I would like to have the function to grey out a disabled
<menuitem>. I know how to make the <menuitem> disabled
but I am unsure how to change the icon to reflect this.
I did try to set the icon of the disabled menu item to be a
different one, thinking that if this worked then I could modify my
icon to look disabled and assign this modified one to the menu
item. However, this re-assignment now means no icon appears for my
Try something like this. You will need to set the icon at the
time you enable or disable the menu item. By using xml instead of
an xmllist and using e4x, it makes this process fairly direct. Have
a set of functions that do this for you. Here is a quick example.