Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Capture the background color of a Item in SwfToolBar
posted

 

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.

  • 7695
    Suggested Answer
    Offline posted

    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,