User 870ab5b546
29-04-2008 15:24:02
Hi,
For Marvin 4.1.6, the following code disables the React arrow button:
However, nearly identical code for Marvin 4.1.14 doesn't disable the React arrow button:
Am I missing something obvious? We really do need to be able to disable the React button.
-- Bob
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