MarvinSketch Example - GUI customization with serialized config file
In this example the Graphical User Interface is customized to use the ISIS/Draw-like configuration. The configuration that is loaded is stored in a .ser file. It is the serialized version of an xml file.
A simple configuration file, configuration.ser is given with the
menuconfig
parameter to achieve this:
<?xml version="1.0" encoding="UTF-8"?>
<customization active="config1">
</customization>
For more information about GUI customization please visit this link.
<script type="text/javascript" SRC="../../../marvin.js"></script> <script type="text/javascript"> <!--msketch_begin("../../..", 540, 480); msketch_param("serializedMenuconfig", "examples/applets/sketch/isisdrawlike-configuration.ser"); msketch_param("customizationEnabled",false) msketch_param("ttmpls10", "*Configuration1*chemaxon/marvin/templates/config1.t"); msketch_end();//--> </script>
The next example shows how to set which atoms and bonds are allowed to draw.
Do you have a question? Would you like to learn more? Please browse among the related topics on our support forum or search the website. If you want to suggest modifications or improvements to our documentation email our support directly!
