Customization of the Toolbar

Back to index page

The JChem toolbar is available in case of Microsoft Office Excel 2003.

 

Personal customization of the toolbar

 

Open the JChemExcelToolbar.xml file for edition.

 

Windows Vista: C:\Users\CurrentUser\AppData\Roaming\ChemAxon\JChem for Excel\JChemExcelToolbar.xml

Windows XP: C:\Documents and Settings\CurrentUser\Application Data\ChemAxon\JChem for Excel\JChemExcelToolbar.xml

 

Select some buttons which you want to hide from the toolbar (e.g.: From SMILES and To SMILES buttons) and set their visibility to FALSE.

 

<button id="TB_ConvertFromSMILESToStructureAction" visible="false" onAction="ConvertFromSMILESToStructureAction"  image="ConvertFromSmiles.png" tooltipText="Convert SMILES string to structure." enabled="true"/>

<button id="TB_ConvertToSMILESAction" visible="false" onAction="ConvertToSMILESAction" image="ConvertToSMILES.png" tooltipText="Convert structure to SMILES string." enabled="true" />

 

Add some new actions (e.g.: ConvertToIUPACNameAction and ConvertFromIUPACNameToStructureAction) to the toolbar. Add the new actions as new rows to a selected section of the JChemExcelToolbar.xml file.

 

<button id="TB_ConvertToIUPACNameAction" visible="true" onAction="ConvertToIUPACNameAction"  image="IUPAC.png" tooltipText="Convert structure to IUPAC name." enabled="true"/>

<button id="TB_ConvertFromIUPACNameToStructureAction" visible="true" onAction="ConvertFromIUPACNameToStructureAction" image="IUPAC.png" tooltipText="Convert IUPAC name to structre." enabled="true" />

 

Save the modified xml file as JChemExcelToolbar_Custom.xml.

 

Windows Vista: C:\Users\CurrentUser\AppData\Roaming\ChemAxon\JChem for Excel\JChemExcelToolbar_Custom.xml

Windows XP: C:\Documents and Settings\CurrentUser\Application Data\ChemAxon\JChem for Excel\JChemExcelToolbar_Custom.xml

 

Paste a IUPAC.png file into the Images folder to provide an icon for the new buttons.

 

Windows Vista: C:\Users\CurrentUser\AppData\Roaming\ChemAxon\JChem for Excel\Images\IUPAC.png

Windows XP: C:\Documents and Settings\CurrentUser\Application Data\ChemAxon\JChem for Excel\Images\IUPAC.png

 

The customized xml file (JChemExcelToolbar_Custom.xml) is loaded automatically instead of the original xml file at starting Microsoft Excel if the customization is correct. The customized JChem for Excel toolbar is displayed in Microsoft Excel. The "To SMILES" and "From SMILES" buttons are hidden from the toolbar but the "To IUPAC" and "From IUPAC" buttons are displayed in the toolbar.

 

Toolbar.Custom1.2003

 

The original JChemExcelToolbar.xml file is loaded automatically instead of the customized file at starting Microsoft Excel if there is any problem with the customization. Please check the log file for information in this case.

 

Corporate level customization of the toolbar

 

The above described modifications has to done in the original JChemExcelToolbar.xml file and it has to be re-packed in installer.