Is there a way to automatically grey out the icons of tools in the ribbon?
When tools are disabled, the text for the buttons gets greyed out, but the icon does not. Why is this?
If you add the same tool to the quick launch bar then it will grey out the icon. Is there a way to enable this for the ribbon as well?
Thanks,
Robson
Try this code:
item.SharedProps.Enabled = False
Next
Disabling the buttons is not the problem. I want the image to be greyed out as well.
I did as you suggest in the "IGPaint with Ribbon CS" sample:
foreach (ToolBase tool in this.ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools) {tool.SharedProps.Enabled = false; }
{
}
You can see the result in the attachement.
The items in the quick launch are greyed out. The words beside the buttons (cut/Redo/Copy) are greyed out. But the Images for those buttons are not greyed out in the ribbon (paste image, cut image, redo image, copy image).
Any ideas?
(I am using the NetAdvantage 2006 V3)