disabling React button in Marvin 4.1.14

User 870ab5b546

29-04-2008 15:24:02

Hi,





For Marvin 4.1.6, the following code disables the React arrow button:





Code:
         <script type="text/javascript">


         msketch_name="ansApplet";


         // 3/2006 RBG increase size of canvas for mechanisms


         msketch_begin("/nosession/marvin", 500, 600);


         msketch_param("molbg", "#ffffff");


         msketch_param("tmpls7",


               ":Conformers:chemaxon/marvin/templates/conformers.t");


         msketch_param("abbrevgroups","ACE.abbrevgroups");


         msketch_param("scale", "32"); 


                        // C-C bond length in pixels; also increases


                        // font size


         msketch_param("atomMappingVisible", "false");


         msketch_param("implicitH",


            "heteroterm");


         msketch_param("lonePairsVisible", "true");


         msketch_param("chiralitySupport",


            "off");


         // 12/2005 raphael don't setMol until applet is initialized


         msketch_param("mol",parent.qframe.getMol());


         msketch_param("debug",2); // added by RBG for debugging memory leak


         msketch_param("reactionSupport", "false");  msketch_param("extraBonds","wedge,either");msketch_param("xtmpls", "chemaxon/marvin/templates/mechTools.mrv");


         msketch_mayscript=true;


         // the following works but is not needed because Mol already loaded


         // msketch_param("molLoaderFinishedEvent",


         //    "js:document.ansApplet.setMol(parent.qframe.getMol())")


         msketch_end();


         </script>






However, nearly identical code for Marvin 4.1.14 doesn't disable the React arrow button:





Code:
                  <script type="text/javascript">


                     msketch_name = "responseApplet";


                     // 3/2006 RBG increase size of canvas for mechanisms


                     msketch_begin("/nosession/marvin",


                        500, 480);


                     msketch_param("molbg", "#ffffff");


                     msketch_param("tmpls7",


                           ":Conformers:chemaxon/marvin/templates/conformers.t");


                     msketch_param("abbrevgroups","ACE.abbrevgroups");


                     msketch_param("scale", "32"); 


                              // C-C bond length in pixels;


                              // also increases font size


                     msketch_param("atomMappingVisible",


                           "false");


                     msketch_param("implicitH",


                           "heteroterm");


                     msketch_param("lonePairsVisible",


                           "true");


                     msketch_param("chiralitySupport",


                           "off");


                     // 12/2005 RAF don't setMol until applet initialized


                     msketch_param("mol", getMol());


                     msketch_param("reactionSupport", "false"); msketch_param("extraBonds", "wedge,either"); msketch_param("xtmpls", "chemaxon/marvin/templates/mechTools.mrv");


                     msketch_mayscript = true;


                     msketch_end();


                  </script>






Am I missing something obvious? We really do need to be able to disable the React button.





-- Bob

ChemAxon 7c2d26e5cf

30-04-2008 12:56:49

Indeed, in Marvin 4.1.14, the "reactionSupport" parameter does not set to disabled the reaction arrow button.


But Marvin 5.0.x solves this problem because menu and toolbar are really customizeable there. I recommend to update to Marvin 5.0.x.

User 870ab5b546

30-04-2008 12:59:29

We can't upgrade to Marvin 5.0 now; we're too close to release. Why did you disable the disabling of the React button? Can you give us a fix?

ChemAxon 7c2d26e5cf

30-04-2008 13:44:37

It was a bug in Marvin 4.1.x serie. But it does not exist in Marvin 5.0.x.


Normally, we do not commit bugfixes in deprecated release branches (like 4.1.x serie). The development in 4.1.x branch was closed when Marvin 5.0 was released. We are focusing to the 5.0.x serie and the upcomming major release (5.1).


I suggest you to discuss this question in private.