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.
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:
&FileT&ools&Window&Help
I will report this as a defect. So far I have not found a workaround. Sorry. :-(
-Shelby
Actually, I just noticed something. It does add the custom button but you only see it when all your documents are closed. Not that it does you much good then. Odd, very odd. As you can see in my screenshot I add Page Numbering.