Disable editing

User c23c5e9da4

14-09-2010 09:27:43

How can I disable editing in an MSketchPane? We have a need to allow users to select atoms in a molecule and not let them edit the molecule. We have created a configuration file to hide all the toolbars and the menuBar so they can't easily edit the structure but we can't figure out how to disable the key events - like if they select and atom and hit the delete key. Is this possible?


Thanks,


 


Trevor

ChemAxon 5433b8e56b

16-09-2010 12:42:43

Hi Trevor,


unfortunatelly currently Marvin does not have this configurtation option, so there is not any simple solution to your problem.


You can disable the keyboard shortcuts in the customzation file also. If you need such a customization file, i can suggest to create it with a standalone MarvinSketch application. There is a customization GUI where you can delete all the unnecessary parts of the Menu, the Toolbars, and the keyboard shortcuts also.


After you customized the standalone MarvinSketch, you can use the created configuration file in applets.


Related documentation can be found in this page:


http://www.chemaxon.com/marvin/help/sketch/gui/customization_server_side.html


Best regards,
Istvan