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
85
How to check whether a SwfToolbar menu exist or not?
posted

 

How can i check whether a toolbar menu exist or not.

If the toolbar menu doesnt exist or if the toolbar menu is disabled, i need to throw an error message.

Can someone help me on this issue, please

Regards,

tinu

Parents
No Data
Reply
  • 9298
    posted

    Tinu,

    You can get a reference to a particular tool by means of code like this:

    Dim tool
    tool = SwfWindow("Testing Ribbon").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetNAProperty("Ribbon.Tabs[0].Groups[0].Tools[3].Tools[1]")
    MsgBox(tool)

    You can loop through the Tools in a Group (or another Tool) and save the Keys of the tools and then search for the Key that you are looking for.

    Let me know if this helps.

Children