Need help about CommandBars (adding menu items to Main Menu) VB.NET

I'm porting my utilities (made with VB.NET) to CorelDRAW X7,after several days trying out to use the new additions to CommandBars and CommandBar classes I can't find the right sintaxis. In previous version of the Object Model I could add a new menu item with this instruction:

But for CorelDRAW X7, after hours and hours playing around, I can't figure out how it works and it's not convenient to me the use of xslt.

A little bit of light would be welcome.
Jaime Sanllehy

Parents
No Data
Reply
  • I think there is a problem with the Menu Bar, if you loop on the controls like this:

    Sub Test()
        Dim c As Control
        
        For Each c In Application.FrameWork.CommandBars("Menu Bar").Controls
            Debug.Print c.Caption
        Next c
    End Sub
    

    You only get:

    &File
    T&ools
    &Window
    &Help

    I will report this as a defect. So far I have not found a workaround. Sorry. :-(

    -Shelby

Children