popup menu customization

User 37df300f74

11-07-2013 14:55:34

Hi there,


I am trying to add a submenu to the root of popup menu, which can be done In the previous version of MarvinSketch. after upgrading to 6.0, it seems that you can only add into 4 default groups (bond, atom, edit, object) . Why is that and do you have a work around?


Thanks


Hongzhou

ChemAxon 23cc8b5e66

11-07-2013 19:08:55

Hi,


Nothing has been changed and you can create a popup-submenu as you desire in 6.0.2 version, too.

Please follow these steps:
1. Select 'View>Editor Style>Customize' from menu
(Or Select 'View>Editor Style>Configuration Settings' from menu and click 'Edit')
2. Select the 'Popups' tab
3. Select 'Edit' from the 'Popups' dropdown list
4. Select 'Modify>Add Submenu' and type its name
5. Select the 'Edit|<Submenu name>' from the 'Popups' dropdown list
6. Click on 'Add'
7. select the desired menu command(s) and click 'Add'
8. Click 'Close' when finished to close the 'Add Commands' popup
9. Click 'OK' to close the 'Customize' popup


I think the "root" of popup menu is when you right-click over the canvas. This popup is the "Edit" popup, so I mentioned that above.


Because these popup menus are context-sensitive and their existence is bound
to the underlying contexts, if you want your submenu to show up in every right-click (i.e. every contextual menu) then you need to modify the Bond, the Atom and the Object popup just as the Edit popup in the above example.
(Until your submenu is empty, it will not appear in the popup.)


I hope this helps,


viktorw

User 37df300f74

11-07-2013 20:36:26

Perfect. Thanks a lot. I did add submenu to Bond, just did not realize Edit submenu is indeed the root of popup.