User 28bfb6b48b
03-03-2010 07:39:40
can menu items be removed and is there detailed documentation for this?
I would like to keep the "clear desk" menu item in FILE but remove the majority of the remaining menu items for an exam type question.
Also is there a method using javascript to clear an image like "clear desk". I could then just add a button to the page and hide the menubar completely.
I am using Marvin Sketch applets with IE on Vista.
ChemAxon 5433b8e56b
04-03-2010 14:11:06
Hi,
you can find a useful example, and additional information about the menu, toolbar and shortcut configuration files in this, this an this page.
You
can create a clear desk like button, you can clear the sketcher with setting an empty molecule to
the applet. For example this method can clear
the Sketch Canvas if the applet is named as "msketch":
function clearSketcher(){
document.msketch.setMol('<?xml version="1.0" ?><cml><MDocument></MDocument></cml>',"mrv");
}
we do not have an exact clearSketch() or similar function in our applet interface.
Best regards,
Istvan