![]() |
#1
|
|||
|
|||
![]()
I wish to use a code:
Application.MainMenu.Controls.Add (ControlID as String). for creation of the popup menu. What is the ControlID and where to take it for new menu item. |
#2
|
||||
|
||||
![]()
this is excerpt from <!--User Menus--> section of c:\Program Files\Corel\CorelDRAW Graphics Suite 13\Programs\UIConfig\CorelDRAW\DrawUI.xml
Code:
newmenu (maybe) bc6d3e54-d8cd-449a-aa61-cd442d6617eb separator 266435b4-6e53-460f-9fa7-f45be187d400 |
#3
|
|||
|
|||
![]()
Thanx,
I already tried to do so. But at addition of the button I receive an error: Run-time error: Code:
Application.FrameWork.CommandBars("Menu Bar").Controls.Add("bc6d3e54-d8cd-449a-aa61-cd442d6617eb").Caption = "MyMenu" Application.FrameWork.CommandBars("MyMenu").Controls.AddCustomButton("2cc24a3e-fe24-4708-9a74-9c75406eebcd", "GlobalMacros.RecordedMacros.MyRectangle").Caption = "Mysubmenu" |
#4
|
|||
|
|||
![]()
Pardon my ignorance, but what's the advantage of adding a new menu via VBA versus doing it through Tools/Customization...?
|
#5
|
|||
|
|||
![]()
It is an old thread but it would be nice to create a menu with some sub menus using 'GlobalMacroStorage_Start()' and deleting it in 'GlobalMacroStorage_Quit()' event. Without other custom menus we can use for deletion:
Code:
Application.CommandBars.Item("Menu Bar").Reset Thanks in advance! |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I add a new menu to the coreldraw by the VBA | levin | CorelDRAW/Corel DESIGNER VBA | 15 | 17-07-2011 15:35 |
How to add the popup menu in CorelDraw using C# | Panjtan | CorelDRAW/Corel DESIGNER VBA | 1 | 09-05-2007 23:48 |
Where to begin with CorelDRAW and VBA | shelbym | CorelDRAW/Corel DESIGNER VBA | 2 | 03-04-2007 10:15 |
Accesing CorelDraw 10 VBA Object Model without running it | dolmos | CorelDRAW/Corel DESIGNER VBA | 5 | 19-12-2003 08:52 |
CorelDraw 11 VBA DOM? | sdickson | CorelDRAW/Corel DESIGNER VBA | 2 | 03-12-2002 16:05 |