Plz any body tell me how to create a submenu by using PopMenu class. I could not found any good tutorial to learn how to create menus and submenu. Some how i m able to create menu but could not found how to add submenu in it. I aslo want to set events on them and enable and disable the items.
Plz Urgent. thanks....
Here dimensionMenu points to the AcadPopupMenu representing the Dimension Menu.
The code adds a submenu (camSubMenu) and several menu entries into it. As for the events, you'll have to play with the items returned by the AddMenuItem methods.
Very thanks for help. It is working. Now two more question plz help.
1. How to assign shortcut key to menuitems. like CTRL+SHIFT+T.
2. How to set image to menu item.
3. I tried to give a name like "Ho&spital". Here 's' should become the "Hot Key". But it did not work. Plz help.