Remove menu options?

User 870ab5b546

08-03-2005 17:37:24

Is there a way to remove certain options from the MarvinSketch menu, such as View 3D or Add Explicit H atoms?





These are very nice features, but for pedagogical purposes, we may not always want to make them available to students.





If there is no way to do so, it would be nice if a future version of MarvinSketch had the capability.

ChemAxon 7c2d26e5cf

09-03-2005 15:24:59

There is no way to remove a menu item from Marvin's menu but we will consider your request.

User 870ab5b546

04-05-2005 19:54:02

This option is going to become increasingly important to us as Marvin becomes more powerful. For example, we may want to ask the student to draw a compound in its lowest energy conformation. If he figures out that he can simply choose Clean in 3D, he may be able to get the answer without ever having to work it out himself!





Ideally, the server-side programmer will be able to choose to omit certain items from the Marvin menu and from the quick-key options. We don't need to remove the functionality, just the user's access to it.

ChemAxon 7c2d26e5cf

05-05-2005 15:00:25

I have implemented new applet parameters to set the accessibility of Add/Remove Explicit Hydrogens and Open 2D/3D viewer menu items in MarvinSketch. These parameters are implemented only in Swing.


Are there any other menu items that you would like to customize?


Tomorrow, I will create an alpha release for you to let you test them.





Tamas

User 870ab5b546

05-05-2005 15:23:38

Tamas wrote:
I have implemented new applet parameters to set the accessibility of Add/Remove Explicit Hydrogens and Open 2D/3D viewer menu items in MarvinSketch. These parameters are implemented only in Swing.


Are there any other menu items that you would like to customize?
Yes. Many of the View options: R/S labels, Atom Mapping, H atoms, Lone pairs. Also the Tools options: Elemental analysis for one. Energy minimization (Clean 3D and Select conformer) are more.





It may be better just to have some general way of removing menu items, rather than creating a new parameter for each menu item that someone might want to remove.

ChemAxon 7c2d26e5cf

06-05-2005 15:06:17

You are right: we should find a more general way to customize the menu.


I have removed the new applet parameters which can be used to customize Add/Remove ExplicitH and 2/3d viewer menu items.





We will work out a general solution for menu customization. Since it is a big work, we can not solve it until the 4.0 release of Marvin.

User 870ab5b546

06-05-2005 15:50:57

Tamas wrote:
You are right: we should find a more general way to customize the menu.


I have removed the new applet parameters which can be used to customize Add/Remove ExplicitH and 2/3d viewer menu items.





We will work out a general solution for menu customization. Since it is a big work, we can not solve it until the 4.0 release of Marvin.
The version of Marvin for which you already have a pre-release posted? Or a later one?

ChemAxon 7c2d26e5cf

06-05-2005 16:04:16

Marvin 4.0 will be the next major release. You have got its pre-release (4.0alpha4).


I hope we can release it soon. Now, we are concentrating on fixing the bugs.

ChemAxon 7c2d26e5cf

09-05-2005 13:19:06

Hi Bob,


Perphaps, my words were misunderstandable. We can not solve menu customization in the near future as we are finalizing Marvin 4.0 release. It means that Marvin 4.0 will not contain this feature yet. We do not plan to add further features to Marvin 4.0. Now, we are concentrating on fixing bugs.

User 870ab5b546

09-05-2005 13:51:26

Tamas wrote:
Hi Bob,


Perphaps, my words were misunderstandable. We can not solve menu customization in the near future as we are finalizing Marvin 4.0 release. It means that Marvin 4.0 will not contain this feature yet. We do not plan to add further features to Marvin 4.0. Now, we are concentrating on fixing bugs.
OK, I understand.

ChemAxon 587f88acea

17-02-2006 18:47:10

Tamas wrote:
Hi Bob,


Perphaps, my words were misunderstandable. We can not solve menu customization in the near future as we are finalizing Marvin 4.0 release. It means that Marvin 4.0 will not contain this feature yet.
This feature will soon be more important to us. We will want to remove the React arrow. Any progress?

ChemAxon 7c2d26e5cf

20-02-2006 19:51:00

In the current Marvin, you can restrict reaction drawing: set the reactionSupport parameter to false or call the MSketchPane.setReactionSupport(boolean) method with false to do it.


The complete menu customization is not solved yet.

ChemAxon 587f88acea

22-02-2006 02:41:00

Thanks. Since which version of Marvin is this feature supported? It doesn't say in the API.

ChemAxon 7c2d26e5cf

22-02-2006 12:05:23

Quote:
Thanks. Since which version of Marvin is this feature supported? It doesn't say in the API.
It is an old feature. It was already available in Marvin 2.9.12.

User fa1369adab

22-02-2006 13:29:22

I start a Marvin 4.0.3 applet with, among other parameters,


Code:
msketch_param("reactionSupport", "false");



I still see the React arrow button, and I can still use it to insert a reaction arrow in my drawing. Am I doing something wrong?

ChemAxon 7c2d26e5cf

22-02-2006 16:05:13

Indeed. If the "extraBonds" parameter is not specified, the msketch_param("reactionSupport", false) does not work.


Until we fix this bug, I suggest to use "extraBonds" parameter in your code:


Code:
msketch_begin("..",430,400);


msketch_param("reactionSupport","false");


msketch_param("extraBonds","wedge");


msketch_end();

User fa1369adab

22-02-2006 17:56:32

Thanks; setting extraBonds works.





Raphael