A item in SwftoolBar is getting highlighted with green color. I need to capture the background color of the item. It is the menu bar on top of the screen.
It drastically depends on how your developer set the color in the first place, and where the Tool appears. You should be able to use something like:
sKeyTool = "SomeToolKey"
GetNAProperty("Tools[" & sKeyTool & "].SharedProps.AppearancesLarge.Appearance.BackColor")GetNAProperty("Tools[" & sKeyTool & "].SharedProps.AppearancesSmall.Appearance.BackColor")GetNAProperty("Tools[" & sKeyTool & "].SharedProps.AppearancesSmall.AppearanceOnMenu.BackColor")GetNAProperty("Tools[" & sKeyTool & "].SharedProps.AppearancesSmall.AppearanceOnToolbar.BackColor")GetNAProperty("Tools[" & sKeyTool & "].SharedProps.AppearancesSmall.AppearanceOnRibbonGroup.BackColor")
I hope this helps,